- Python 3.8+ (Check with
python3 --version
orpython --version
) - pip (Check with
pip --version
) - venv (Python's built-in virtual environment tool)
If any of these are missing, install them:
-
Install Python, pip, and venv:
sudo apt update sudo apt install python3 python3-pip python3-venv
# Create the virtual environment
python3 -m venv venv
# Activate the virtual environment
source venv/bin/activate
Once the virtual environment is activated, install the required dependencies using the requirements.txt
file:
pip install -r requirements.txt
python3 site_app/manage.py runserver
python3 site_app/manage.py runserver