Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

no TEMPLATE_CONTEXT_PROCESSORS in django

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!

like image 246
Kakar Avatar asked Mar 08 '14 10:03

Kakar


1 Answers

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.

like image 178
Mangu Singh Rajpurohit Avatar answered Oct 08 '22 23:10

Mangu Singh Rajpurohit