Hasty Briefsbeta

Show HN: Django Keel – 10 Years of Django Best Practices in One Template

3 days ago
  • #Production-Ready
  • #Project Template
  • #Django
  • Django Keel is a versatile, production-ready Django project template suitable for various use cases including SaaS applications, API backends, web apps, and internal tools.
  • The template provides stability, direction, and foundation for Django projects, similar to how a keel provides structural support to a ship.
  • Key features include Django 5.2 with Python 3.12/3.13, custom user model, split settings, Docker + Compose, pytest + coverage, ruff + mypy, and health/readiness endpoints.
  • Optional features include Django REST Framework, Strawberry GraphQL, HTMX + Tailwind CSS, Next.js, Celery, Temporal, Django Channels, Sentry, OpenTelemetry, Prometheus metrics, multi-tenant teams, Stripe integration, 2FA, SOPS, PostgreSQL FTS, OpenSearch, i18n/l10n, and various deployment targets.
  • Security features include production security defaults, HSTS, secure cookies, SSL redirect, CSP headers, admin hardening, rate limiting, brute-force protection, SOPS for encrypted secrets, and environment-based configuration.
  • The template supports multiple deployment options including Kubernetes, AWS ECS Fargate, Fly.io, Render, and AWS EC2 with Ansible.
  • Django Keel enforces code quality with ruff, mypy, pytest, and pre-commit hooks, and includes a Just task runner for common workflows.
  • The template is designed for 12-Factor App compliance, with features like single codebase, explicit dependencies, config in environment variables, and separate build/release/run stages.
  • Documentation is comprehensive, covering quick start, installation, features, API options, deployment guides, and contributing.
  • Django Keel is inspired by django-init, scaf, cookiecutter-django, and wemake-django-template, and is licensed under the MIT License.