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 / 5

Each 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

← Introduction to Django