Skip to content

Template project with Django, Postgres, Dramatiq, Guncorn, Caddy

Notifications You must be signed in to change notification settings

vildan-valeev/django_template

Repository files navigation

Settings backend

Template for quick start project with Docker, Django, Dramatiq, Caddy, Gunicorn

local

$ docker run --name redis -p 6379:6379 -d redis
$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py runserver
$ python manage.py rundramatiq

dev

$ docker-compose -f docker-compose.dev.yml up -d --build

prod

$ docker-compose -f docker-compose.prod.yml up -d --build

Enter to container

$ docker exec -it <id container or name> bash
$ docker exec -it <id container or name> <command>

Database dump/load

$ python manage.py dumpdata --natural-foreign --natural-primary --exclude=contenttypes --exclude=auth.Permission --indent 4 > default_data.json

$ python manage.py loaddata default_data.json

About

Template project with Django, Postgres, Dramatiq, Guncorn, Caddy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published