no TEMPLATE_CONTEXT_PROCESSORS in django

Kakar picture Kakar · Mar 8, 2014 · Viewed 9.9k times · Source

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!

Answer

Mangu Singh Rajpurohit picture Mangu Singh Rajpurohit · Sep 1, 2016

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.