- Create a virtual environment if you do not already have one:
- Windows:
python -m venv .venv - macOS / Linux:
python3 -m venv .venv
- Windows:
- Activate it:
- Windows PowerShell:
& .venv\Scripts\Activate.ps1 - macOS / Linux:
source .venv/bin/activate
- Windows PowerShell:
- Install dependencies with
pip install -r requirements.txt. - Create
.envfrom.env.exampleand setDB_PASSWORD=postgresfor local Docker PostgreSQL. - Start the development server with
python manage.py runserver.
- Start the containers with
docker compose up -d. - Make sure your local
.envhasDB_PASSWORD=postgres. - Stop the containers with
docker compose downwhen you are done.