From a8939240991e5c1b90faff2e940b4035d5d11b51 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 25 Oct 2013 16:27:22 +0200 Subject: Adapt settings for mobile management --- settings.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/settings.py b/settings.py index 677cf83..0447d02 100644 --- a/settings.py +++ b/settings.py @@ -9,6 +9,7 @@ _ = lambda s: s DEBUG = False TEMPLATE_DEBUG = DEBUG +MOBILE_TEST = False # Django settings for chimere project. PROJECT_NAME = 'Chimere' @@ -226,6 +227,7 @@ INSTALLED_APPS += [ ] LOG_PATH = '/var/log/django/' +MOBILE_DOMAINS = [] # if you have specific domains for mobile access try: from local_settings import * @@ -295,4 +297,8 @@ if 'OSM_JS_URLS' not in globals(): OSM_JS_URLS = [STATIC_URL + "openlayers/OpenLayers.js", STATIC_URL + "openlayers/SimplePanZoom.js", "http://www.openstreetmap.org/openlayers/OpenStreetMap.js"] - +if 'OSM_MOBILE_JS_URLS' not in globals(): + global OSM_MOBILE_URLS + OSM_JS_MOBILE_URLS = [STATIC_URL + "openlayers/OpenLayers.mobile.js", + STATIC_URL + "openlayers/SimplePanZoom.js", + "http://www.openstreetmap.org/openlayers/OpenStreetMap.js"] -- cgit v1.2.3