From 53a4f0301f0bee8b935bcb450afbe8c57aab3604 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 24 Aug 2012 12:41:02 +0200 Subject: Fix default Openlayers path when static path is not the default --- example_project/settings.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/example_project/settings.py b/example_project/settings.py index 38bc916..742314d 100644 --- a/example_project/settings.py +++ b/example_project/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"] + -- cgit v1.2.3