From a0ec98d4e7bfc6562f41d73e4213c7bcf81e1697 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Fri, 5 Jan 2018 10:15:36 +0100 Subject: [PATCH] add django context_processors.request in context processors (#21007) --- corbo/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/corbo/settings.py b/corbo/settings.py index 29f740d..5b244ca 100644 --- a/corbo/settings.py +++ b/corbo/settings.py @@ -84,6 +84,10 @@ USE_TZ = True STATICFILES_FINDERS = global_settings.STATICFILES_FINDERS + ('gadjo.finders.XStaticFinder',) +if not 'django.template.context_processors.request' in global_settings.TEMPLATE_CONTEXT_PROCESSORS: + TEMPLATE_CONTEXT_PROCESSORS = ('django.template.context_processors.request',) + \ + global_settings.TEMPLATE_CONTEXT_PROCESSORS + # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.7/howto/static-files/ -- 2.15.1