2👍
✅
according to Django’s API (see also here) django.core.context_processors.request
is not set by default:
By default, TEMPLATE_CONTEXT_PROCESSORS is set to:
("django.contrib.auth.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
"django.core.context_processors.static",
"django.core.context_processors.tz",
"django.contrib.messages.context_processors.messages")
In addition to these, RequestContext always uses django.core.context_processors.csrf.
AFTER DISCUSSION…
then, at the very end, you have just to add the following line at the end of your settings file:
TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + ( 'django.core.context_processors.request', )
Source:stackexchange.com