Permalink
Browse files

ViewLensAbstract.py: export STATIC_URL setting

  • Loading branch information...
1 parent 19cd788 commit 327be0c88b9fa14f215df7d51e9a9261a0ae60ce @trey0 trey0 committed Apr 10, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 geocamLens/ViewLensAbstract.py
@@ -95,6 +95,7 @@ def galleryDebug(self, request):
def getExportSettings(self):
exportedVars = ['SCRIPT_NAME',
+ 'STATIC_URL',
'MEDIA_URL',
'DATA_URL',
'GEOCAM_AWARE_GALLERY_PAGE_COLS',
@@ -105,7 +106,7 @@ def getExportSettings(self):
'GEOCAM_AWARE_USE_MARKER_CLUSTERING',
'GEOCAM_AWARE_USE_TRACKING',
'GEOCAM_AWARE_DEFAULT_MAP_BOUNDS']
- exportDict = dict(((f, getattr(settings, f))
+ exportDict = dict(((f, getattr(settings, f, None))
for f in exportedVars))
return json.dumps(exportDict)

0 comments on commit 327be0c

Please sign in to comment.