summaryrefslogtreecommitdiff
path: root/chimere/settings.sample.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-10-25 16:10:18 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-10-25 16:10:18 +0200
commitfbfa77b0da6f2ca6f03318ff4ec5fa6ecc05bd80 (patch)
treed65b8f0072d991940fd6638e2e90e8cdc84fe8ec /chimere/settings.sample.py
parent59a277a289b5bde729cf338e227947ec8ee2e278 (diff)
downloadChimère-fbfa77b0da6f2ca6f03318ff4ec5fa6ecc05bd80.tar.bz2
Chimère-fbfa77b0da6f2ca6f03318ff4ec5fa6ecc05bd80.zip
Mobile adaptation
* manage specific domains for mobile * add Openlayers mobile library * put sample (empty) file for specific JS and specific CSS * add a new MOBILE context variable
Diffstat (limited to 'chimere/settings.sample.py')
-rw-r--r--chimere/settings.sample.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/chimere/settings.sample.py b/chimere/settings.sample.py
index bf7c484..cc1feb3 100644
--- a/chimere/settings.sample.py
+++ b/chimere/settings.sample.py
@@ -8,6 +8,7 @@ _ = lambda s: s
DEBUG = False
TEMPLATE_DEBUG = DEBUG
+MOBILE_TEST = False
# Django settings for chimere project.
PROJECT_NAME = 'Chimere'
@@ -217,6 +218,7 @@ INSTALLED_APPS += [
]
LOG_PATH = '/var/log/django/'
+MOBILE_DOMAINS = [] # if you have specific domains for mobile access
try:
from local_settings import *
@@ -286,4 +288,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"]