Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Latest commit

 

History

History
42 lines (29 loc) · 899 Bytes

useful-commands.md

File metadata and controls

42 lines (29 loc) · 899 Bytes

Commonly used commands for development

Update persistence

Update migration information

docker-compose run webapp /bin/bash -c 'python3 manage.py makemigrations'

Run migrations on database

docker-compose run webapp /bin/bash -c 'python3 manage.py migrate'

Run unit-tests

docker-compose run webapp /bin/bash -c 'DJANGO_SETTINGS_MODULE=config.settings python3 manage.py test'

or simply

./runtests.py --webapp-tests

More about testing can be found in the Testing documentation.

Use backend

Create superuser

docker-compose run webapp /bin/bash -c 'python3 manage.py createsuperuser'

Update locales

Please update locales only on release. Otherwise you will get huge diffs in feature pull requests.

docker-compose run webapp /bin/bash -c 'python3 manage.py makemessages -a'