Django SaaS Boilerplate
The open-source Django starter kit for building SaaS applications. Auth, payments, dashboard, and deployment — all wired up.
What's included
- Custom user model — email-only login, no username
- Authentication — signup, login, email verification, password reset (django-allauth)
- Stripe subscriptions — Payment Methods API, webhooks, subscription status tracking
- User dashboard — sidebar nav, profile, settings, notification preferences, API keys
- Subscription plans — admin-managed plans with trial support
- Background tasks — Django 6.0 native
@task() decorator, no Celery needed
- Content Security Policy — Django 6.0 built-in CSP middleware with nonces
- Template partials — Django 6.0
{% partialdef %} for reusable components
- Security headers — HSTS, SSL redirect, secure cookies (auto-enabled in production)
- PostgreSQL support —
DATABASE_URL with SQLite fallback
- Static files — WhiteNoise, no nginx needed
- Deployment — Gunicorn + Procfile, ready for Railway/Heroku/VPS
- Linting — Ruff with Django-specific rules
- 16 tests — landing pages, auth, dashboard, models