database name read from config in multitenant mode

This commit is contained in:
Serghei Mihai 2014-05-06 19:16:15 +02:00
parent 8fd2652b0b
commit d7de4195b4
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import os
DATABASES = {
'default': {
'ENGINE': 'tenant_schemas.postgresql_backend',
'NAME': 'portail_admin',
'NAME': os.environ.get('DATABASE_NAME', 'portail_admin'),
},
}