no TEMPLATE_CONTEXT_PROCESSORS in django
10,878
In Django 1.7 and later versions, context_processor can be configured for each template backend engine and is available under TEMPLATES setting variable in settings.py.
Related videos on Youtube
Comments
-
Kakar about 2 years
I don't have
TEMPLATE_CONTEXT_PROCESSORS
in my default settings!TEMPLATE_CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.request', 'django.core.context_processors.static', 'django.contrib.messages.context_processors.messages', )
Do I have to add it myself What do I do? Please give me your suggestion or advice. Thank you!
-
Kakar over 10 yearsSo, that means I don't have to add
TEMPLATE_CONTEXT_PROCESSORS
in the settings, right? -
jibreel over 10 yearsright, but you could add it as well, if you plan to add more processors, so you don't override the default.