Projet

Général

Profil

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

Thomas Noël, 30 octobre 2017 16:06

Télécharger (1,19 ko)

Voir les différences:

Subject: [PATCH 2/2] debian: use new TEMPLATES settings system (#19578)

 debian/debian_config.py | 2 +-
 debian/settings.py      | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
debian/debian_config.py
16 16
INSTALLED_APPS = ('hobo.agent.combo', ) + INSTALLED_APPS
17 17

  
18 18
# add statics_hash context processor
19
TEMPLATE_CONTEXT_PROCESSORS = tuple(TEMPLATE_CONTEXT_PROCESSORS) + ('hobo.context_processors.statics_hash',)
19
TEMPLATES[0]['OPTIONS']['context_processors'] += 'hobo.context_processors.statics_hash'
20 20

  
21 21
#
22 22
# local settings
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
-