settings.py: fix settings

This commit is contained in:
Jérôme Schneider 2014-03-12 18:19:26 +01:00
parent bf3dac1b2a
commit 7f5893cb10
1 changed files with 3 additions and 1 deletions

View File

@ -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',