Project

General

Profile

0001-settings-add-requests-context-processor-21007.patch

Frédéric Péters (de retour le 10/10), 19 January 2018 01:57 PM

Download (2.01 KB)

View differences:

Subject: [PATCH] settings: add requests context processor (#21007)

 corbo/settings.py  | 23 +++++++++++++++++++++--
 debian/settings.py |  1 -
 2 files changed, 21 insertions(+), 3 deletions(-)
corbo/settings.py
24 24
# SECURITY WARNING: don't run with debug turned on in production!
25 25
DEBUG = True
26 26

  
27
TEMPLATE_DEBUG = True
28

  
29 27
ALLOWED_HOSTS = []
30 28

  
31 29

  
......
84 82

  
85 83
STATICFILES_FINDERS = global_settings.STATICFILES_FINDERS + ('gadjo.finders.XStaticFinder',)
86 84

  
85
# Templates
86
TEMPLATES = [
87
    {
88
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
89
        'DIRS': [
90
        ],
91
        'APP_DIRS': True,
92
        'OPTIONS': {
93
            'context_processors': [
94
                'django.contrib.auth.context_processors.auth',
95
                'django.template.context_processors.debug',
96
                'django.template.context_processors.i18n',
97
                'django.template.context_processors.media',
98
                'django.template.context_processors.request',
99
                'django.template.context_processors.static',
100
                'django.template.context_processors.tz',
101
                'django.contrib.messages.context_processors.messages',
102
            ],
103
        },
104
    },
105
]
87 106

  
88 107
# Static files (CSS, JavaScript, Images)
89 108
# https://docs.djangoproject.com/en/1.7/howto/static-files/
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
-