diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-08-24 12:41:02 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-08-24 12:41:02 +0200 |
commit | ad295b5481cb572503644210d3fee15bf5292755 (patch) | |
tree | 575c9b14988a9918b7be7c170f1ea2d7f88b59f2 | |
parent | 8a73bb09fe6f10ad7c0bb8e3af999b2d6dc127ae (diff) | |
download | Chimère - projet de référence-ad295b5481cb572503644210d3fee15bf5292755.tar.bz2 Chimère - projet de référence-ad295b5481cb572503644210d3fee15bf5292755.zip |
Fix default Openlayers path when static path is not the default
-rw-r--r-- | settings.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/settings.py b/settings.py index 38bc916..742314d 100644 --- a/settings.py +++ b/settings.py @@ -24,9 +24,6 @@ JQUERY_CSS_URLS = ('/javascript/jquery-ui/css/smoothness/jquery-ui.css', '/javascript/jquery-ui-themes/base/jquery.ui.all.css') OSM_CSS_URLS = ["http://www.openlayers.org/api/theme/default/style.css"] -OSM_JS_URLS = [STATIC_URL + "chimere/js/OpenLayers.js", - STATIC_URL + "chimere/js/SimplePanZoom.js", - "http://www.openstreetmap.org/openlayers/OpenStreetMap.js"] GPSBABEL = '/usr/bin/gpsbabel' GPSBABEL_OPTIONS = 'simplify,crosstrack,error=0.005k' # simplify with an @@ -253,3 +250,10 @@ if 'CHIMERE_SHARE_NETWORKS' not in globals(): ("Identi.ca", 'http://identi.ca/index.php?action=newnotice&status_textarea=%(text)s %(url)s', STATIC_URL + 'chimere/img/identica.png'), ) + +if 'OSM_JS_URLS' not in globals(): + global OSM_JS_URLS + OSM_JS_URLS = [STATIC_URL + "chimere/js/OpenLayers.js", + STATIC_URL + "chimere/js/SimplePanZoom.js", + "http://www.openstreetmap.org/openlayers/OpenStreetMap.js"] + |