- Create a virtual environment:
python3 -m venv .venv
- Activate the virtual environment:
. ./.venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Set environment variables:
export SECRET_KEY=dev export DEBUG=True export ALLOWED_HOSTS=127.0.0.1,localhost
- Migrate the database:
python manage.py migrate
- Collect static files:
python manage.py collectstatic --noinput
- Run the dev server:
python manage.py runserver
- View the running application in a browser at http://localhost:8000