From 8a77bfedd0e3fe4fbafb0b9d6b73ce565f1d8c38 Mon Sep 17 00:00:00 2001 From: Ronny Abraham Date: Tue, 13 Sep 2016 19:07:24 +0300 Subject: [PATCH] got rid of django 1.8 template debug error modified: templates/conf/django/files/local.jinja2 modified: templates/conf/gunicorn/files/local.jinja2 --- templates/conf/django/files/local.jinja2 | 4 ++-- templates/conf/gunicorn/files/local.jinja2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/conf/django/files/local.jinja2 b/templates/conf/django/files/local.jinja2 index 9f9a5e5..8c77eac 100644 --- a/templates/conf/django/files/local.jinja2 +++ b/templates/conf/django/files/local.jinja2 @@ -9,7 +9,7 @@ import logging LOCAL_LOGGING_PREFIX = "%s %%(message)s" % BRANCH logging.basicConfig(format=LOCAL_LOGGING_PREFIX, level=logging.DEBUG) -configuration = initialize.get_config(BRANCH) +configuration = initialize.environment(BRANCH) SITE_ID = 1 @@ -64,7 +64,7 @@ STATICFILES_DIRS = ( # debug and debug toolbar settings DEBUG = True -TEMPLATE_DEBUG = DEBUG +TEMPLATES[0]['OPTIONS']['debug'] = DEBUG USE_DEBUG_TOOLBAR = DEBUG # allow template debug outputs on {{ project_branch }} environment diff --git a/templates/conf/gunicorn/files/local.jinja2 b/templates/conf/gunicorn/files/local.jinja2 index 9f9a5e5..8c77eac 100644 --- a/templates/conf/gunicorn/files/local.jinja2 +++ b/templates/conf/gunicorn/files/local.jinja2 @@ -9,7 +9,7 @@ import logging LOCAL_LOGGING_PREFIX = "%s %%(message)s" % BRANCH logging.basicConfig(format=LOCAL_LOGGING_PREFIX, level=logging.DEBUG) -configuration = initialize.get_config(BRANCH) +configuration = initialize.environment(BRANCH) SITE_ID = 1 @@ -64,7 +64,7 @@ STATICFILES_DIRS = ( # debug and debug toolbar settings DEBUG = True -TEMPLATE_DEBUG = DEBUG +TEMPLATES[0]['OPTIONS']['debug'] = DEBUG USE_DEBUG_TOOLBAR = DEBUG # allow template debug outputs on {{ project_branch }} environment