🏢 django-omnitenant
Production-Ready Multi-Tenancy for Django
Build scalable, multi-tenant SaaS applications with Django.
Flexible isolation strategies, automatic routing, and seamless integration.
Installation
Step-by-step instructions for various deployment scenarios.
Usage Guide
Best practices and real-world examples for multi-tenant apps.
API Reference
Complete documentation for all modules, classes, and functions.
⭐ Key Features
Powerful capabilities for building modern multi-tenant applications
Isolation Strategies
Database-per-tenant, schema-per-tenant, or cache-based isolation. Choose what works best for your use case.
Management Commands
CLI tools for creating tenants, running migrations, and managing domains.
Integrations
Built-in support for Celery, Redis, Django REST Framework, and more.
Thread-Safe Context
Automatic tenant context management using contextvars. No manual passing of tenant IDs.
Smart Routing
Intelligent database and schema routing based on domain, subdomain, or custom resolvers.
Extensible Architecture
Pluggable backends, resolvers, and middleware. Built to be customized for your needs.