2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00

[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
This commit is contained in:
substantialnoninfringinguser 2009-05-13 05:49:29 +01:00
parent c4b8ea4d9b
commit 4a50e098a9

View File

@ -1,4 +1,7 @@
import troggle.settings as settings
def settingsContext(request):
return { 'settings':settings }
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 }