Initial commit
[copyspeak.git] / src / copyspeak / settings / context.py
1 from . import INSTALLED_APPS
2
3
4 TEMPLATE_CONTEXT_PROCESSORS = tuple(x for x in (
5     "django.contrib.auth.context_processors.auth"
6             if "django.contrib.auth" in INSTALLED_APPS else None,
7     "django.core.context_processors.debug",
8     "django.core.context_processors.i18n",
9     "django.core.context_processors.media",
10     "django.core.context_processors.static",
11     "django.core.context_processors.tz",
12     "django.contrib.messages.context_processors.messages"
13             if 'django.contrib.messages' in INSTALLED_APPS else None,
14     "django.core.context_processors.request"
15 ) if x is not None)