settings: overload all templates with portail_citoyen templates

This commit is contained in:
Benjamin Dauvergne 2014-03-12 17:46:33 +01:00
parent 3662480bbf
commit bf3dac1b2a
1 changed files with 3 additions and 2 deletions

View File

@ -99,10 +99,11 @@ PORTAIL_CITOYEN_FAVICON_URL = ''
ROOT_URLCONF = 'portail_citoyen.urls'
TEMPLATE_DIRS = [os.path.join(PROJECT_PATH, 'templates']
if os.environ.get('TEMPLATE_DIRS'):
TEMPLATE_DIRS = os.environ['TEMPLATE_DIRS'].split(':')
TEMPLATE_DIRS = os.environ['TEMPLATE_DIRS'].split(':') + TEMPLATE_DIRS
else:
TEMPLATE_DIRS = ('/var/lib/%s/templates' % PROJECT_NAME,)
TEMPLATE_DIRS = ['/var/lib/%s/templates' % PROJECT_NAME] + TEMPLATE_DIRS
INSTALLED_APPS = (
'django.contrib.auth',