- PostgreSQL(and
libpq-dev) - Python 3.8+
python-poetrypre-commitfor git hooks- GNU Make (for development, optional)
- Docker
sudo apt-get update
sudo apt-get install -y \
python3 \
python3-pip \
libpq-dev \
makeUse make for project management
Run make or make help to see every command
Read this to understand poetry shell
- Create virtual environment
make venv- To activate freshly created environment run
. "$(poetry env info -p)/bin/activate. You can also usepoetry shell, but it's buggy - Show poetry's venv info with
poetry env info
- To activate freshly created environment run
- Install githooks with
make githooks - Generate dotenvs
make env
- Install githooks
- Run/stop docker
make development/make stop - Or run django dev server
make runserver
- Run linters
make check - Auto format code
make fix - Clear database volume with
make clear
