This is a basic template for Django projects to use Docker Compose, Makefile, and PostgreSQL.
-
Clone the repository:
git clone https://github.com/AndreyTurobov/munz-app-django.git cd munz-app-django
-
Install all required packages in
Requirements
section.
make app
- up application and database/infrastructuremake app-logs
- follow the logs in app containermake app-down
- down application and all infrastructuremake storages
- up only storages. you should run you application locally for debugging/developing purposesmake storages-logs
- follow the logs in storages containersmake storages-down
- down all infrastructure
make makemigrations
- make migrations to modelsmake migrate
- apply all made migrationsmake collectstatic
- collect static files for deploymake superuser
- create superuser for 'admin' role