e161e0b2d62a656970e593062d9bbf38be89cce4
[fnp-django-template.git] / project_name / settings.d / 40-context.py
1 TEMPLATE_CONTEXT_PROCESSORS = tuple(x for x in (
2     "django.contrib.auth.context_processors.auth"
3             if "django.contrib.auth" in INSTALLED_APPS else None,
4     "django.core.context_processors.debug",
5     "django.core.context_processors.i18n",
6     "django.core.context_processors.media",
7     "django.core.context_processors.static",
8     "django.core.context_processors.tz",
9     "django.contrib.messages.context_processors.messages"
10             if 'django.contrib.messages' in INSTALLED_APPS else None,
11     "django.core.context_processors.request"
12 ) if x is not None)