docker-compose up --build
docker-compose run --rm web pipenv install <package-name>
docker-compose run --rm web python manage.py startapp <app-name>
docker-compose run --rm web python manage.py makemigrations
docker-compose run --rm web python manage.py migrate
docker-compose run --rm web python manage.py createsuperuser
docker-compose run --rm web python manage.py test
Tip : Use --keepdb
optional parameter at the end in order to use the same test database accross all tests
docker-compose run --rm web python manage.py collectstatic
docker-compose run --rm web python manage.py loaddata <fixture>
examples :
- docker-compose run --rm web python manage.py loaddata users
- docker-compose run --rm web python manage.py loaddata manage.py assessments
Be careful with the order