6

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
  • 5,354
  • 10
  • 55
  • 93

3 Answers3

11

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.

Mangu Singh Rajpurohit
  • 10,806
  • 4
  • 68
  • 97
0

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

jibreel
  • 359
  • 2
  • 8
  • So, that means I don't have to add `TEMPLATE_CONTEXT_PROCESSORS` in the settings, right? – Kakar Mar 08 '14 at 11:35
  • right, but you could add it as well, if you plan to add more processors, so you don't override the default. – jibreel Mar 08 '14 at 14:28
0

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.

Breno Teixeira
  • 3,860
  • 2
  • 19
  • 17