Skip to main content

A lib to help in the creation of shared schema multi tenants applications without suffering

Project description

A lib to help in the creation applications with shared schema without suffering


The full documentation is at


Install Django Shared Schema Tenants:

pip install django-shared-schema-tenants

Add it to your INSTALLED_APPS:


Add Django Shared Schema Tenants’s URL patterns:

from shared_schema_tenants import urls as shared_schema_tenants_urls

urlpatterns = [
    url(r'^', include(shared_schema_tenants_urls)),

Add TenantMiddleware to your MIDDLEWARES:

    # ...
    # ...


  • Tenants synced with django requests: The active tenant can be extracted from the domain of the request and from a specific http header attribute.
  • Easy data isolation between tenants: You retrieve and create data the same way you do without tenants. The active tenant can be retrieved from the request, and can also be forcedly set.
  • Partially shared data: If there is data that can be accessed from more then one tenant in your applidation, you don’t need to duplicate it.

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox


Tools used in rendering this package:


0.1.0 (2017-08-10)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-shared-schema-tenants, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django_shared_schema_tenants-0.1.0-py2.py3-none-any.whl (22.1 kB) File type Wheel Python version 3.6 Upload date Hashes View
Filename, size django-shared-schema-tenants-0.1.0.tar.gz (16.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page