summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-09-06 18:42:35 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2015-09-25 16:26:42 +0200
commit9ecf5503154344df99afbb6726171530ea640fa2 (patch)
treeee360a8b44c788365c204f84fd2665a62f1d2026
parent1aa5fe3f570c5a124ce8fccdc7229144e6fbf67f (diff)
downloadChimère - projet Saclay-9ecf5503154344df99afbb6726171530ea640fa2.tar.bz2
Chimère - projet Saclay-9ecf5503154344df99afbb6726171530ea640fa2.zip
Update settings for HAYSTACK
-rw-r--r--settings.py40
1 files changed, 23 insertions, 17 deletions
diff --git a/settings.py b/settings.py
index a66eecc..a228d72 100644
--- a/settings.py
+++ b/settings.py
@@ -30,11 +30,7 @@ JQUERY_CSS_URLS = []
OSM_CSS_URLS = ["http://www.openlayers.org/api/theme/default/style.css"]
GPSBABEL = '/usr/bin/gpsbabel'
-# simplify with an  error of 5 meters
-GPSBABEL_OPTIONS = 'simplify,crosstrack,error=0.005k'
-# GPSBABEL_OPTIONS = 'simplify,count=100'
-
-# chimere specific ##
+# # chimere specific ##
CHIMERE_DEFAULT_ZOOM = 10
# center of the map
CHIMERE_DEFAULT_CENTER = (-1.679444, 48.114722)
@@ -94,17 +90,18 @@ CHIMERE_ENABLE_CLUSTERING = False
# enable routing in Chimère
CHIMERE_ENABLE_ROUTING = False
-CHIMERE_ROUTING_TRANSPORT = (('foot', _(u"Foot")),
- ('bicycle', _(u"Bicycle")),
- ('motorcar', _(u"Motorcar")),
- )
+CHIMERE_ROUTING_TRANSPORT = (
+ ('foot', _(u"Foot")),
+ ('bicycle', _(u"Bicycle")),
+ ('motorcar', _(u"Motorcar")),
+)
-CHIMERE_ROUTING_SPEEDS = {'foot': ((3, _(u"You are walking slowly")),
- (6, _(u"You are walking pretty quickly")),),
- 'bicycle': ((16, _(u"You are riding pretty slowly")),
- (22, _(u"You are riding pretty quickly"))
- )
- }
+CHIMERE_ROUTING_SPEEDS = {
+ 'foot': ((3, _(u"You are walking slowly")),
+ (6, _(u"You are walking pretty quickly")),),
+ 'bicycle': ((16, _(u"You are riding pretty slowly")),
+ (22, _(u"You are riding pretty quickly")),)
+}
# available routing engine: 'routino'
CHIMERE_ROUTING_ENGINE = {
@@ -203,7 +200,6 @@ MEDIA_URL = '/media/'
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
- # 'django.template.loaders.eggs.load_template_source',
)
MIDDLEWARE_CLASSES = (
@@ -302,6 +298,17 @@ LOGGING = {
},
}
+CHIMERE_SEARCH_ENGINE = False
+# default haystack parameters when search engine is activated
+HAYSTACK_CONNECTIONS = {
+ 'default': {
+ 'ENGINE': 'haystack.backends.solr_backend.SolrEngine',
+ 'URL': 'http://127.0.0.1:8080/solr'
+ },
+}
+HAYSTACK_SEARCH_RESULTS_PER_PAGE = 12
+HAYSTACK_AUTOCOMPLETE = False
+
try:
from local_settings import *
except ImportError, e:
@@ -321,7 +328,6 @@ if not JQUERY_CSS_URLS:
JQUERY_CSS_URLS = (STATIC_URL + 'jquery-ui/smoothness/jquery-ui.css',
STATIC_URL + 'jquery-ui/base/jquery.ui.all.css')
-
LOGGING['handlers']['logfile']['filename'] = LOGFILENAME
if 'CHIMERE_SHARE_NETWORKS' not in globals():