[SCM] live-studio branch, master, updated. be51da814fb12d25dce46a7f078a46f5c89bd777
Chris Lamb
lamby at debian.org
Fri Jul 30 02:52:36 UTC 2010
The following commit has been merged in the master branch:
commit 46f3cb2f37934d64c6bed69cf1db4eb95d6d3c40
Author: Chris Lamb <lamby at debian.org>
Date: Thu Jul 29 17:01:29 2010 -0400
Include 'settings' into the context.
Signed-off-by: Chris Lamb <lamby at debian.org>
diff --git a/config/settings/defaults/templates.py b/config/settings/defaults/templates.py
index e4f18da..85aae36 100644
--- a/config/settings/defaults/templates.py
+++ b/config/settings/defaults/templates.py
@@ -6,4 +6,5 @@ TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.messages.context_processors.messages',
'django.core.context_processors.request',
'django.contrib.messages.context_processors.messages',
+ 'live_studio.auth.context_processors.settings_context',
)
diff --git a/live_studio/auth/context_processors.py b/live_studio/auth/context_processors.py
new file mode 100644
index 0000000..c285a3e
--- /dev/null
+++ b/live_studio/auth/context_processors.py
@@ -0,0 +1,4 @@
+from django.conf import settings
+
+def settings_context(request):
+ return {'settings': settings}
--
live-studio
More information about the debian-live-changes
mailing list