An opinionated template for quickly bootstrapping a django project using postgres, docker and nginx.
- Everything Django offers OOTB
- CORS support
- Autogenerated OpenAPI and ReDoc API documentation
- Production deployment using docker-compose
- SSL using Nginx and LetsEncrypt
poetry shell # sets up and activates a venv
poetry install # installs missing dependencies from the lockfile
python manage.py makemigrations
python manage.py migrate
In debug
python manage.py runserver
In production
docker-compose up -d --build
This template comes with an already existing model. Feel free to modify or remove it.
API docs can be found at:
- http://localhost:8000/docs (OpenAPI 3)
- http://localhost:8000/redoc (ReDoc)