summaryrefslogtreecommitdiff
path: root/example_project
diff options
context:
space:
mode:
Diffstat (limited to 'example_project')
-rw-r--r--example_project/settings.py (renamed from example_project/settings.py.example)11
1 files changed, 11 insertions, 0 deletions
diff --git a/example_project/settings.py.example b/example_project/settings.py
index f7598bc..bed2540 100644
--- a/example_project/settings.py.example
+++ b/example_project/settings.py
@@ -1,6 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
+# overload all theses settings in your local_settings.py file
+
import os
# Django settings for chimere project.
@@ -63,6 +65,9 @@ CHIMERE_ICON_OFFSET_Y = -25
# default id category to check on the map
CHIMERE_DEFAULT_CATEGORIES = [1]
+# display picture inside the description by default or inside a galery?
+CHIMERE_MINIATURE_BY_DEFAULT = False
+
# JS definition of the main map cf. OpenLayers documentation for more details
#MAP_LAYER = '''new OpenLayers.Layer.OSM.CycleMap("Cycle map", {
#displayOutsideMaxExtent: true, wrapDateLine: true})''' # OSM cyclemap
@@ -252,3 +257,9 @@ TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
)
+
+try:
+ from local_settings import *
+except ImportError, e:
+ print 'Unable to load local_settings.py:', e
+