From 337a4ced4a4c84b1e7c78a19f64a23df16fa6d5c Mon Sep 17 00:00:00 2001 From: Elias Showk Date: Thu, 24 May 2018 18:37:45 +0200 Subject: [PATCH] debian config: change django settings compatibility with TEMPLATES (#23035) --- debian/debian_config_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/debian_config_common.py b/debian/debian_config_common.py index 4aa4e7b..9de3e7a 100644 --- a/debian/debian_config_common.py +++ b/debian/debian_config_common.py @@ -162,7 +162,7 @@ VAR_DIR = '/var/lib/%s' % PROJECT_NAME STATIC_ROOT = os.path.join(VAR_DIR, 'collectstatic') # template settings -if 'TEMPLATE_DEBUG' in globals(): +if len(TEMPLATES) == 0: # compatibility with django<1.10 if PROJECT_NAME != 'wcs': TEMPLATE_LOADERS = ( -- 2.17.0