2👍
✅
The context processors go in the OPTIONS
dictionary in the TEMPLATES
setting.
TEMPLATES = [
{
...
OPTIONS = {
'context_processors': [
...
# add your template context processor here
],
...
},
...
},
]
The media
and static
context processors that you need should be included by default, so you shouldn’t have to make any changes.
See the docs on upgrading templates to Django 1.8 for more info.
Source:stackexchange.com