Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 687 Bytes

installation.rst

File metadata and controls

34 lines (22 loc) · 687 Bytes

Installation

At the command line:

$ easy_install django-shared-schema-tenants

Or, if you have virtualenvwrapper installed:

$ mkvirtualenv django-shared-schema-tenants
$ pip install django-shared-schema-tenants

To use Django Shared Schema Tenants in a project, add it to your `INSTALLED_APPS`:

INSTALLED_APPS = (
    ...
    'shared_schema_tenants.apps.SharedSchemaTenantsConfig',
    ...
)

You also have to add TenantMiddleware to django `MIDDLEWARES`:

MIDDLEWARES = [
    # ...
    'shared_schema_tenants.middleware.TenantMiddleware',
    # ...
]