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.

Share:
10,878

Related videos on Youtube

Kakar
Author by

Kakar

Explorer!

Updated on June 04, 2022

Comments

  • Kakar
    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
    Kakar over 10 years
    So, that means I don't have to add TEMPLATE_CONTEXT_PROCESSORS in the settings, right?
  • jibreel
    jibreel over 10 years
    right, but you could add it as well, if you plan to add more processors, so you don't override the default.