From 4a50e098a9aa17a4d6eeca85157a84fe76a82383 Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Wed, 13 May 2009 05:49:29 +0100 Subject: [PATCH] [svn] modify context so it does not pass unneeded and sensitive info in settings to templates Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8235 by aaron @ 1/30/2009 6:57 AM --- context.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/context.py b/context.py index f0fd208..9afc33e 100644 --- a/context.py +++ b/context.py @@ -1,4 +1,7 @@ import troggle.settings as settings def settingsContext(request): - return { 'settings':settings } \ No newline at end of file + return { 'settings.MEDIA_URL':settings.MEDIA_URL, + 'settings.URL_ROOT':settings.URL_ROOT, + 'settings.ADMIN_MEDIA_PREFIX':settings.ADMIN_MEDIA_PREFIX, + 'settings.SVX_URL':settings.SVX_URL } \ No newline at end of file