Skip to content
/ django-template Public template

An opinionated template for quickly getting started with a django webapp

Notifications You must be signed in to change notification settings

smoke-trees/django-template

Repository files navigation

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: