settings: Enable a bunch of default context processors.
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 19 Oct 2010 08:52:13 +0000 (10:52 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 19 Oct 2010 09:03:20 +0000 (11:03 +0200)
These ensure that various values are available to templates when a
RequestContext is used.

settings.py

index fbe3df40e8d80d38935fdcb3fa2891c0f9c990e1..ff1d118f2ffe7d3f07f17a4b66155d43d8059f7b 100644 (file)
@@ -82,6 +82,14 @@ INSTALLED_APPS = (
     'tickets',
 )
 
+TEMPLATE_CONTEXT_PROCESSORS = (
+    "django.core.context_processors.auth",
+    "django.core.context_processors.debug",
+    "django.core.context_processors.i18n",
+    "django.core.context_processors.media",
+    "django.core.context_processors.request",
+)
+
 # Allow authentication against the phpb user accounts
 
 AUTHENTICATION_BACKENDS = (