Projet

Général

Profil

0001-debian-use-new-TEMPLATES-settings-system-19578.patch

Thomas Noël, 30 octobre 2017 15:32

Télécharger (1,4 ko)

Voir les différences:

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(-)
debian/debian_config.py
15 15
# add custom hobo agent module
16 16
INSTALLED_APPS = ('hobo.agent.combo', ) + INSTALLED_APPS
17 17

  
18
# add statics_hash context processor
19
TEMPLATE_CONTEXT_PROCESSORS = tuple(TEMPLATE_CONTEXT_PROCESSORS) + ('hobo.context_processors.statics_hash',)
20

  
21 18
#
22 19
# local settings
23 20
#
24 21
execfile(os.path.join(ETC_DIR, 'settings.py'))
25 22

  
23
# add statics_hash context processor
24
TEMPLATES[0]['OPTIONS']['context_processors'] += 'hobo.context_processors.statics_hash'
25

  
26 26
# run additional settings snippets
27 27
execfile('/usr/lib/hobo/debian_config_settings_d.py')
debian/settings.py
13 13

  
14 14
# SECURITY WARNING: don't run with debug turned on in production!
15 15
DEBUG = False
16
TEMPLATE_DEBUG = False
17 16

  
18 17
#ADMINS = (
19 18
#        # ('User 1', 'watchdog@example.net'),
20
-