diff options
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/settings.py b/settings.py index da703fb..1cc2d36 100644 --- a/settings.py +++ b/settings.py @@ -19,11 +19,16 @@ CONTACT_EMAIL = '' STATIC_URL = '/static/' STATIC_ROOT = ROOT_PATH + 'static/' +STATICFILES_DIRS = ( + os.path.join(ROOT_PATH, "chimere_example_static"), +) + TINYMCE_URL = '/tinymce/' JQUERY_JS_URLS = ('/javascript/jquery/jquery.js', '/javascript/jquery-ui/jquery-ui.js',) 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"] GPSBABEL = '/usr/bin/gpsbabel' GPSBABEL_OPTIONS = 'simplify,crosstrack,error=0.005k' # simplify with an @@ -104,10 +109,22 @@ est trop dangereux.</p>""" NOMINATIM_URL = 'http://nominatim.openstreetmap.org/search' +MOBILE_TEST = False +MOBILE_DOMAINS = [] + # thumbnail CHIMERE_THUMBS_SCALE_HEIGHT=250 CHIMERE_THUMBS_SCALE_WIDTH=None +# search engine +CHIMERE_SEARCH_ENGINE = False +HAYSTACK_CONNECTIONS = { + 'default': { + 'ENGINE': 'haystack.backends.solr_backend.SolrEngine', + 'URL': 'http://127.0.0.1:8080/solr' + }, +} + CHIMERE_CSV_ENCODING = 'ISO-8859-1' ADMINS = ( @@ -225,6 +242,9 @@ try: except ImportError, e: print 'Unable to load local_settings.py:', e +if CHIMERE_SEARCH_ENGINE: + INSTALLED_APPS.insert(INSTALLED_APPS.index('south'), 'haystack') + if 'LOGGING' not in globals(): global LOGGING LOGGING = {'version': 1, @@ -314,3 +334,9 @@ if 'MAP_CSS_URLS' not in globals(): ] } +if 'OSM_JS_URLS' not in globals(): + global OSM_JS_URLS + OSM_JS_URLS = [STATIC_URL + "openlayers/OpenLayers.js", + STATIC_URL + "openlayers/SimplePanZoom.js", + "http://www.openstreetmap.org/openlayers/OpenStreetMap.js"] + |