Guided Notes
Setup, Projects & Apps
Virtual environments, installing Django, creating a project and an app, settings, and running the development server.
A virtual environment
Slide 1 / 5Each Python project should have its own virtual environment ā an isolated folder of packages, so projects don't break each other.
python -m venv .venv
Activate it: ⢠Windows: .venv\Scripts\activate ⢠macOS/Linux: source .venv/bin/activate
Your prompt shows (.venv) when it's active. Then install Django inside it:
python -m pip install django python -m django --version
