edge icon indicating copy to clipboard operation
edge copied to clipboard

django.template.context_processors.request not listed amongst context_processors?

Open usonianhorizon opened this issue 10 years ago • 1 comments

Since I am new to Django, I'm uncertain whether not listing django.template.context_processors.request amongst context_processors in settings/base.py is intentional or not, but I was trying to get referrer redirect working using request.path inside a template and couldn't figure out why this was null until I stumbled across the requirement for this include.

Regards.

usonianhorizon avatar Jul 02 '15 19:07 usonianhorizon

Thanks for pointing this out. It was intentional. This was not included by default until Django 1.7 as mentioned in the docs.

But it is included by default in 1.8. I shall mark this as a bug.

arocks avatar Jul 03 '15 07:07 arocks