diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-10-25 16:27:22 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-10-25 16:27:22 +0200 |
commit | a8939240991e5c1b90faff2e940b4035d5d11b51 (patch) | |
tree | c0bb3676369a013bef7df55df6e972e78e366f9a | |
parent | 3835ed15d6fb0fd63e22a728f790fe564d9b4a32 (diff) | |
download | Chimère - projet de référence-a8939240991e5c1b90faff2e940b4035d5d11b51.tar.bz2 Chimère - projet de référence-a8939240991e5c1b90faff2e940b4035d5d11b51.zip |
Adapt settings for mobile management
-rw-r--r-- | settings.py | 8 |
1 files changed, 7 insertions, 1 deletions
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"] |