projects
/
matthijs
/
projects
/
dorestad-bookings.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0dc783
)
settings: Enable a bunch of default context processors.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 19 Oct 2010 08:52:13 +0000
(10:52 +0200)
committer
Matthijs 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
patch
|
blob
|
history
diff --git
a/settings.py
b/settings.py
index fbe3df40e8d80d38935fdcb3fa2891c0f9c990e1..ff1d118f2ffe7d3f07f17a4b66155d43d8059f7b 100644
(file)
--- a/
settings.py
+++ b/
settings.py
@@
-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 = (