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:56 PM

Download (1.67 KB)

View differences:

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

 corbo/settings.py | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 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/
90
-