Ticket #1271: template_request.patch
File template_request.patch, 1.1 KB (added by , 19 years ago) |
---|
-
django/conf/global_settings.py
107 107 # Each one should be a callable that takes the request object as its 108 108 # only parameter and returns a dictionary to add to the context. 109 109 TEMPLATE_CONTEXT_PROCESSORS = ( 110 'django.core.context_processors.request', 110 111 'django.core.context_processors.auth', 111 112 'django.core.context_processors.debug', 112 113 'django.core.context_processors.i18n', -
django/core/context_processors.py
38 38 context_extras['LANGUAGE_CODE'] = LANGUAGE_CODE 39 39 return context_extras 40 40 41 def request(request): 42 return {'request': request} 43 41 44 # PermWrapper and PermLookupDict proxy the permissions system into objects that 42 45 # the template system can understand. 43 46