summaryrefslogtreecommitdiff
path: root/example_project
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2012-04-14 16:40:10 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2012-04-14 16:40:10 +0200
commitdcbd12a1d275dec70d39771fcdb9d73d07c4aea9 (patch)
treed7aaa637a9e3b1a6bfa9065b4c5e7dda21af04be /example_project
parenta83eee5eaffaf0faf2b2c8da837970583792ba3c (diff)
downloadChimère-dcbd12a1d275dec70d39771fcdb9d73d07c4aea9.tar.bz2
Chimère-dcbd12a1d275dec70d39771fcdb9d73d07c4aea9.zip
Uses a local_settings.py and put settings.py in VCS
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
+