talira

Cookiecutter Django

Jumpstart production-ready Django projects quickly

open sourceBSD-3-Clauseself-hostablefree

Cookiecutter Django is a project template for starting production-ready Django projects: you run Cookiecutter against it, answer a few prompts, and get a new Django project with your choices filled in, which you then own. It targets Django 6.0 and Python 3.14 and renders projects with 100% starting test coverage. The project has a custom user model, registration with django-allauth, 12-factor settings from environment variables, secure defaults, PostgreSQL (14 to 18), Bootstrap 5, email through Anymail, media storage on Amazon S3, Google Cloud Storage, Azure Storage or nginx, Docker Compose for development and production with Traefik and Let's Encrypt, a Procfile for Heroku and pre-commit. Celery and Flower, Sentry, WhiteNoise and local email testing can be added at setup. It is run by volunteers and funded through Open Collective and GitHub Sponsors.

Problems it solves

  • start a new Django project with production settings instead of the bare startproject
  • a Django project template with Docker, Postgres and user registration already set up
  • stop redoing the same Django setup at the start of every project

Features

  • custom user model and django-allauth registration
  • 12-factor settings via django-environ
  • PostgreSQL 14 to 18
  • Docker Compose with Traefik and Let's Encrypt
  • optional Celery, Flower and Sentry
  • 100% starting test coverage