diff options
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 |
commit | 03aa94962e9bba881c98df96ad07d3f6d7dcc5ee (patch) | |
tree | a29481e75ec022b1bbf3d40a4250f41118c2fcdc | |
parent | b657813b37515ed8466d284a1459c16766682333 (diff) | |
download | Chimère - projet de référence-03aa94962e9bba881c98df96ad07d3f6d7dcc5ee.tar.bz2 Chimère - projet de référence-03aa94962e9bba881c98df96ad07d3f6d7dcc5ee.zip |
Uses a local_settings.py and put settings.py in VCS
-rw-r--r-- | settings.py (renamed from settings.py.example) | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/settings.py.example b/settings.py index f7598bc..bed2540 100644 --- a/settings.py.example +++ b/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 + |