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 | 53a4f0301f0bee8b935bcb450afbe8c57aab3604 (patch) | |
tree | db012ab58bcc120e8387b99e5ac097487ee7e70d | |
parent | 4d9d7c877c1fef71d9a421af6a2c812ceb18b81f (diff) | |
download | Chimère-53a4f0301f0bee8b935bcb450afbe8c57aab3604.tar.bz2 Chimère-53a4f0301f0bee8b935bcb450afbe8c57aab3604.zip |
Fix default Openlayers path when static path is not the default
-rw-r--r-- | example_project/settings.py | 10 |
1 files 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"] + |