Kakar
Kakar

Reputation: 5609

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!

Upvotes: 8

Views: 13079

Answers (3)

Mangu Singh Rajpurohit
Mangu Singh Rajpurohit

Reputation: 11420

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.

Upvotes: 12

Breno Teixeira
Breno Teixeira

Reputation: 4029

Django 1.6 brings a cleanest settings.py file. Now a lot of default settings are omited and you just need override it whether you need.

Upvotes: 0

jibreel
jibreel

Reputation: 359

According to the docs these seems to be the default, unless you overide it. link to doc

Upvotes: 0

Related Questions