From 0c13a0e62378a5a76c1a536a4ecc4732d464a925 Mon Sep 17 00:00:00 2001 From: Thomas NOEL Date: Mon, 30 Oct 2017 15:28:08 +0100 Subject: [PATCH 1/2] debian: use new TEMPLATES settings system (#19578) --- debian/debian_config.py | 6 +++--- debian/settings.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/debian/debian_config.py b/debian/debian_config.py index 41060d1..e1f6087 100644 --- a/debian/debian_config.py +++ b/debian/debian_config.py @@ -15,13 +15,13 @@ execfile('/usr/lib/hobo/debian_config_common.py') # add custom hobo agent module INSTALLED_APPS = ('hobo.agent.combo', ) + INSTALLED_APPS -# add statics_hash context processor -TEMPLATE_CONTEXT_PROCESSORS = tuple(TEMPLATE_CONTEXT_PROCESSORS) + ('hobo.context_processors.statics_hash',) - # # local settings # execfile(os.path.join(ETC_DIR, 'settings.py')) +# add statics_hash context processor +TEMPLATES[0]['OPTIONS']['context_processors'] += 'hobo.context_processors.statics_hash' + # run additional settings snippets execfile('/usr/lib/hobo/debian_config_settings_d.py') diff --git a/debian/settings.py b/debian/settings.py index 48d5b6a..d9d69bd 100644 --- a/debian/settings.py +++ b/debian/settings.py @@ -13,7 +13,6 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False -TEMPLATE_DEBUG = False #ADMINS = ( # # ('User 1', 'watchdog@example.net'), -- 2.14.2