Copy .env-sample
, to .env
and change the CHANGE_MEs.
$ cp .env-sample .env
$ $EDITOR .env
$ docker-compose build --build-arg UID=$UID
$ docker-compose up
In a new terminal run
$ docker exec -it klub_web_1 bash
$ cd apps/aklub && django-admin.py compilemessages -l cs_CZ && cd ../../
$ python manage.py migrate
$ python manage.py createsuperuser2
For development use
$ ./develop.sh
To launch the dev environment. To launch the development web server run
python manage.py runserver 0.0.0.0:8000
Other usefull commands are
Run formatter
./runblack.sh
Run test suit
pytest apps
Run other test suit
python3 manage.py test
Run a single test
./single-pytest.sh path/to/unit/file.py