[svn r8235] modify context so it does not pass unneeded and sensitive info in settings to templates

This commit is contained in:
aaron 2009-01-30 07:57:59 +01:00
parent 119f93255c
commit 047e259551

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 }