django-ninja-starter
A production-oriented Django + Django Ninja starter, shipped both as a GitHub template and as an installable project generator. Authentication, OAuth token storage, versioned APIs, typing, tests and CI are already wired together — the parts every backend rebuilds from scratch, built once and made opt-in.
- Four login methods — password, emailed code, SMS code, magic link — and four second factors (TOTP, SMS, email, recovery codes), each a separate app that installs nothing until you name it.
- Three OAuth token modes selected by one environment variable: sliding expiry, server-side device sessions, or refresh rotation with family-wide revocation on reuse.
- Social sign-in for Google, Apple and Microsoft; every login ends by minting a signed JWT, and secrets are persisted only as hashes.
- Environment-split settings, secure production defaults, health checks, Swagger docs, coverage, linting and CI in the generated project from the first commit.