multitenant: fix instructions on the settings in the README

This commit is contained in:
Benjamin Dauvergne 2014-02-04 15:23:11 +01:00 committed by Frédéric Péters
parent 4126c1f6f6
commit 6a6dad495f
1 changed files with 13 additions and 1 deletions

View File

@ -2,7 +2,7 @@ Multitenant
-----------
An application for making a Django application multitenant for Entr'ouvert
custsomers.
customers.
Install
-------
@ -37,8 +37,20 @@ Define the shared application:
SHARED_APPS = (
'tenant_schemas',
'entrouvert.djommon.multitenant',
# those are needed for the public apps to work
# add also any application needed by the public app
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
)
TENANT_APPS = INSTALLED_APPS
INSTALLED_APPS += ('tenant_schemas', 'entrouvert.djommon.multitenant')
Use multitenant database engine:
DATABASES = {