Django / Installation & setup
CLI tools & setup
Prepare your workspace, run a small example and check the result before starting the course.
A terminal is where you type commands. A runtime or compiler runs your code; a package manager installs project dependencies. Follow the tools and command surfaces named in this course’s guide.
Already set up? Continue to How the Web Works →
BEFORE THE FIRST CODING TASK
Your computer, ready to learn.
A local Django project
Create a new practice folder in your editor and open its integrated terminal there. Use a separate folder from personal or production projects. Use Python compatible with the chosen Django release. Follow the Python setup guide to create .venv inside a fresh folder; source code stays outside .venv.
Already configured? Run the verification steps and continue. Use the command surface labelled beside each snippet, such as your terminal or SQL console.
- 1
Create a project environment if it does not exist yet. Record its interpreter version.
Windows · Terminalpy -3 -m venv .venv .\.venv\Scripts\python.exe --versionWhat you should see: The isolated interpreter prints a supported Python version.
Something didn’t work?
Check the Python/Django compatibility guide; do not replace the system interpreter.
- 2
Install Django into that environment and verify its version.
Windows · Terminal.\.venv\Scripts\python.exe -m pip install Django .\.venv\Scripts\python.exe -m django --versionWhat you should see: Django reports its installed version. Record it and use its matching documentation.
Something didn’t work?
If pip reports incompatible Python requirements, select supported versions rather than bypassing the check.
- 3
Create a new project in the current practice directory and start its development server on an unused port.
Windows · Terminal.\.venv\Scripts\python.exe -m django startproject pebells_site . .\.venv\Scripts\python.exe manage.py runserver 8001What you should see: Opening the printed local URL shows the Django starter page.
Something didn’t work?
Choose a free port if 8001 is occupied. Read migration warnings separately from a failed server startup.
Check it yourself
Locate settings.py and urls.py and explain which project you started. The later views/models lessons introduce application behavior; this check does not publish a service.
This is a self-check; it does not mark a lesson or course complete.
Official setup guides & version requirements
My workspace notes
Notes stay in this browser. They are not uploaded or assessed.