settings.py: fix settings
This commit is contained in:
parent
bf3dac1b2a
commit
7f5893cb10
|
@ -99,12 +99,14 @@ PORTAIL_CITOYEN_FAVICON_URL = ''
|
|||
|
||||
ROOT_URLCONF = 'portail_citoyen.urls'
|
||||
|
||||
TEMPLATE_DIRS = [os.path.join(PROJECT_PATH, 'templates']
|
||||
TEMPLATE_DIRS = [os.path.join(PROJECT_PATH, 'templates')]
|
||||
if os.environ.get('TEMPLATE_DIRS'):
|
||||
TEMPLATE_DIRS = os.environ['TEMPLATE_DIRS'].split(':') + TEMPLATE_DIRS
|
||||
else:
|
||||
TEMPLATE_DIRS = ['/var/lib/%s/templates' % PROJECT_NAME] + TEMPLATE_DIRS
|
||||
|
||||
TEMPLATE_DIRS = tuple(TEMPLATE_DIRS)
|
||||
|
||||
INSTALLED_APPS = (
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
|
|
Reference in New Issue