From 5a4ad2059736bd11a5e2ff67aa8620f45c77d0eb Mon Sep 17 00:00:00 2001 From: Maximilian Stauss Date: Tue, 15 Sep 2015 16:04:36 -0400 Subject: [PATCH] updated settings so that there is no decrepation warning TEMPLATE_DEBUG is now an Option of every template referenced in https://docs.djangoproject.com/en/1.8/ref/settings/#template-debug --- wagtail/project_template/project_name/settings/dev.py | 5 ++++- wagtail/project_template/project_name/settings/production.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/wagtail/project_template/project_name/settings/dev.py b/wagtail/project_template/project_name/settings/dev.py index ccf551c49..d40832220 100644 --- a/wagtail/project_template/project_name/settings/dev.py +++ b/wagtail/project_template/project_name/settings/dev.py @@ -3,7 +3,10 @@ from .base import * # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -TEMPLATE_DEBUG = True +DEBUG_TEMPLATE = True + +for i in range(0, len(TEMPLATES) - 1): + TEMPLATES[i]['OPTIONS']['debug'] = DEBUG_TEMPLATE # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '{{ secret_key }}' diff --git a/wagtail/project_template/project_name/settings/production.py b/wagtail/project_template/project_name/settings/production.py index bea6d7eb8..3b102b9ad 100644 --- a/wagtail/project_template/project_name/settings/production.py +++ b/wagtail/project_template/project_name/settings/production.py @@ -2,7 +2,10 @@ from .base import * DEBUG = False -TEMPLATE_DEBUG = False +DEBUG_TEMPLATE = False + +for i in range(0, len(TEMPLATES) - 1): + TEMPLATES[i]['OPTIONS']['debug'] = DEBUG_TEMPLATE try: