Clone this template to get a multi-tenant SaaS backend with subdomain-per-organization routing running in one Docker command.
Add your own business logic on top of the built-in JWT auth, owner/admin/member role system, and Celery background jobs without writing the infrastructure yourself.
Use the built-in GDPR management command to implement user data deletion requests and log redaction without building compliance tooling from scratch.
Requires Docker to start the full stack (PostgreSQL, Redis, Celery workers, and the web server) with a single command.
Django SaaS Kit is a starter template for developers who want to build a software-as-a-service product on top of Django, a popular Python web framework. Instead of spending weeks writing the common infrastructure every SaaS product needs, you clone this repository and get those pieces already in place so you can focus on what makes your product different. The template handles multi-tenancy, which means one running application can serve many separate organizations at the same time, keeping their data isolated. It does this through subdomain routing: requests to tenant1.yourdomain.com are automatically associated with that specific organization. User authentication is handled with short-lived tokens (15 minutes) that automatically refresh, and there is a built-in permission system with three roles per organization: owner, admin, and member. Background jobs, such as sending emails or running scheduled tasks, are handled by Celery running on a Redis message broker. The template also includes real-time notifications delivered over WebSocket connections, feature flags for turning parts of the product on or off without redeployment, and structured logs that include a unique request ID on every line so you can trace a problem through the system. For teams that need to comply with GDPR, the kit includes a management command for erasing a user's personal data, log redaction for sensitive fields like passwords and email addresses, and documentation covering how foreign key relationships are handled during deletion. An automatically generated API documentation page (available at localhost:8000/api/docs after setup) lists every endpoint and lets you call them interactively. Setup requires Docker, and the full stack (database, Redis, Celery workers, and the web server) starts with a single command. The codebase is written in Python and is licensed under MIT, meaning you can use it in commercial products without restrictions.
← abu-rayhan-alif on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.