{"library":"django-tenants","type":"library","category":null,"description":"Django-tenants is a Python library that enables multi-tenancy for Django applications by leveraging PostgreSQL schemas. It allows a single Django project instance to serve multiple customers (tenants), each with isolated data, a crucial feature for Software-as-a-Service (SaaS) platforms. The library automates schema switching based on request hostnames, ensuring data isolation and efficient resource utilization. It is actively maintained, with the current stable version being 3.10.1, and receives regular updates to support new Django and Python versions. [1, 6, 7]","language":"python","status":"active","version":"3.10.1","tags":["Django","multi-tenancy","PostgreSQL","SaaS","schemas","database"],"last_verified":"Sat May 23","install":[{"cmd":"pip install django-tenants","imports":["from django_tenants.models import TenantMixin","from django_tenants.models import DomainMixin","from django_tenants.middleware.main import TenantMainMiddleware","from django_tenants.routers import TenantSyncRouter","from django_tenants.utils import schema_context","from django_tenants.utils import tenant_context","from django_tenants.admin import TenantAdminMixin"]}],"homepage":"https://django-tenants.readthedocs.io","github":"https://github.com/django-tenants/django-tenants","docs":null,"changelog":null,"pypi":"https://pypi.org/project/django-tenants/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":3.5,"avg_import_s":null,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/django-tenants/compatibility"}}