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"