From bf3dac1b2ae18dad5452246fe0349dedcb2d7629 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 12 Mar 2014 17:46:33 +0100 Subject: [PATCH] settings: overload all templates with portail_citoyen templates --- portail_citoyen/settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/portail_citoyen/settings.py b/portail_citoyen/settings.py index 16d3d2c..33084c7 100644 --- a/portail_citoyen/settings.py +++ b/portail_citoyen/settings.py @@ -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',