Skip to content

davitovmasyan/dj-project

Repository files navigation

Django Project Template

Python3.8 Django4 Celery4 Postgres12 Redis6 Ansible

Setup

Make sure you have docker and docker-compose installed on your machine.

Commands

To build the project

make

To run the project

make run

To jump into container

$ make shell
root@<containerid>:/project#

To setup git hooks

python3 -m pip install -r requirements/requirements-test.txt
ln -s ../../pre-commit .git/hooks/pre-commit

To run tests

make test

To see coverage report

make report

To build coverage report html

make report-html

To check import ordering

make check-sort

To fix import ordering

make sort

To stop running containers

make stop