First, run a Postgresql database with Docker:
- Run
docker compose up
Use Virtual env is for format checking in VSCode
- go to your project folder
- install virtual env:
pip install virtualenv
- create a virtual env:
virtualenv .venv
- activate virtual env:
source .venv/bin/activate
, check if your python path is correct - install packages:
pip install -r requirements.txt
Start the Django server
- Migrate database
python manage.py migrate
- Run Django Server
python manage.py runserver 9400
- Run all tests
./manage.py test -v 2