multitenant: fix instructions on the settings in the README
This commit is contained in:
parent
4126c1f6f6
commit
6a6dad495f
|
@ -2,7 +2,7 @@ Multitenant
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
An application for making a Django application multitenant for Entr'ouvert
|
An application for making a Django application multitenant for Entr'ouvert
|
||||||
custsomers.
|
customers.
|
||||||
|
|
||||||
Install
|
Install
|
||||||
-------
|
-------
|
||||||
|
@ -37,8 +37,20 @@ Define the shared application:
|
||||||
SHARED_APPS = (
|
SHARED_APPS = (
|
||||||
'tenant_schemas',
|
'tenant_schemas',
|
||||||
'entrouvert.djommon.multitenant',
|
'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:
|
Use multitenant database engine:
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
|
|
Loading…
Reference in New Issue