Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.15 KB

README.md

File metadata and controls

52 lines (39 loc) · 1.15 KB

Django template

An opinionated template for quickly bootstrapping a django project using postgres, docker and nginx.

Features

  • Everything Django offers OOTB
  • CORS support
  • Autogenerated OpenAPI and ReDoc API documentation
  • Production deployment using docker-compose
  • SSL using Nginx and LetsEncrypt

Instructions to run

Pre-requisites:

Installing dependencies

poetry shell # sets up and activates a venv
poetry install # installs missing dependencies from the lockfile

Run migrations

python manage.py makemigrations
python manage.py migrate

Start the server

In debug

python manage.py runserver

In production

docker-compose up -d --build

More info

This template comes with an already existing model. Feel free to modify or remove it.

API docs can be found at: