This is a basic template for Django projects configured to use Docker Compose, Makefile, and PostgreSQL.
-
Clone the repository:
git clone https://github.com/artem-sokolov-git/django-docker-compose-postgres-boilerplate.git cd django-docker-compose-postgres-boilerplate
-
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 your application locally for debugging/developing purposesmake storages-logs
- foolow the logs in storages containersmake storages-down
- down all infrastructure
make migrations
- make migrations to modelsmake migrate
- apply all made migrationsmake collectstatic
- collect staticmake superuser
- create admin user