-
Create a virtual environment:
-
Choose a virtual environment tool (e.g.,
venv
,virtualenv
,pipenv
). Refer to their documentation for specific commands. Here's an example usingvenv
:python -m venv venv source venv/bin/activate # Linux/macOS venv\Scripts\activate.bat # Windows
-
-
Install dependencies:
-
Activate the virtual environment.
-
Install the required packages from
requirements.txt
:pip install -r requirements.txt
-
-
Migrate database (if applicable):
python manage.py migrate
-
Start the development server:
python manage.py runserver