Boilerplate Django project
- Configure Docker
- Run Docker Compose:
docker-compose up
- manage.sh: Execute Django manage.py commands. E.g:
./scripts/manage.sh DJANGO_COMMAND
Build and Run
docker-compose build --build-arg APP_ENVIROMENT="develop"
docker-compose up
docker-compose down
docker exec -it IMAGE_ID sh
Exec commands in Services
docker-compose exec db psql --username={{username}} --dbname={{dbname}}
docker-compose exec web python src/manage.py createsuperuser
py.test
- python3.8 -m venv venv
source venv/bin/activate
- python manage.py migrate
- python manage.py runserver