This guide explains how to create a virtual environment, install dependencies, and run the Django project.
Run the following commands in your terminal:
# Create a virtual environment (using venv)
python -m venv venv
# Activate the virtual environment
# On Linux/macOS:
source venv/bin/activate
# On Windows:
venv\Scripts\activateMake sure requirements.txt is in the root directory of your project, then run:
pip install -r requirements.txtBefore running the project, apply database migrations:
python manage.py migrateUse the following command to start the server:
python manage.py runserverNow, open your browser and visit: 👉 http://127.0.0.1:8000/