diff options
author | Nim <etienne.loks@peacefrogs.net> | 2012-02-19 04:09:30 +0100 |
---|---|---|
committer | Nim <etienne.loks@peacefrogs.net> | 2012-02-19 04:09:30 +0100 |
commit | 1ebcd848f0e42671550aad5c06ab8719cc8ff9e6 (patch) | |
tree | 6213cc0b115d767bab58e9603a64bf9591709371 /example_project | |
parent | b8c357a488da55ec263373e8e831381375904abe (diff) | |
download | Chimère-1ebcd848f0e42671550aad5c06ab8719cc8ff9e6.tar.bz2 Chimère-1ebcd848f0e42671550aad5c06ab8719cc8ff9e6.zip |
Many fixes on template and static vars
Diffstat (limited to 'example_project')
-rw-r--r-- | example_project/settings.py.example | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/example_project/settings.py.example b/example_project/settings.py.example index c9a3934..f7fe697 100644 --- a/example_project/settings.py.example +++ b/example_project/settings.py.example @@ -12,45 +12,51 @@ BASE_URL = SERVER_URL + EXTRA_URL EMAIL_HOST = 'localhost' STATIC_URL = '/static/' -TINYMCE_URL = 'http://localhost/tinymce/' -JQUERY_URL = "/chimere/static/jquery/jquery-1.4.4.min.js" +TINYMCE_URL = '/tinymce/' +JQUERY_URL = '/javascript/jquery/jquery.js' GPSBABEL = '/usr/bin/gpsbabel' GPSBABEL_OPTIONS = 'simplify,crosstrack,error=0.005k' # simplify with an # error of 5 meters #GPSBABEL_OPTIONS = 'simplify,count=100' ## chimere specific ## +CHIMERE_DEFAULT_ZOOM = 10 # center of the map -DEFAULT_CENTER = (-1.679444, 48.114722) +CHIMERE_DEFAULT_CENTER = (-1.679444, 48.114722) # projection used by the main map # most public map providers use spherical mercator : 900913 -EPSG_PROJECTION = 900913 +CHIMERE_EPSG_PROJECTION = 900913 # projection displayed to the end user by openlayers # chimere use the same projection to save its data in the database -EPSG_DISPLAY_PROJECTION = 4326 +CHIMERE_EPSG_DISPLAY_PROJECTION = 4326 # to restrict the map to a defined bounding box set it here # (left, bottom, right, top) -RESTRICTED_EXTENT = None +CHIMERE_RESTRICTED_EXTENT = None # dynamic load of categories on the main map -DYNAMIC_CATEGORIES = False +CHIMERE_DYNAMIC_CATEGORIES = False # display of shortcuts for areas -DISPLAY_AREAS = True +CHIMERE_DISPLAY_AREAS = True # specific css for areas -CSS_AREAS = True +CHIMERE_CSS_AREAS = True # number of day before an event to display # if equal to 0: disable event management # if you change this value from 0 to a value in a production environnement # don't forget to run the upgrade.py script to create appropriate fields in # the database -DAYS_BEFORE_EVENT = 30 +CHIMERE_DAYS_BEFORE_EVENT = 30 + +CHIMERE_ICON_WIDTH = 34 +CHIMERE_ICON_HEIGHT = 38 +CHIMERE_ICON_OFFSET_X = -17 +CHIMERE_ICON_OFFSET_Y = -38 # default id category to check on the map -DEFAULT_CATEGORIES = [1] +CHIMERE_DEFAULT_CATEGORIES = [1] # 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 -MAP_LAYER = "new OpenLayers.Layer.OSM.Mapnik('Mapnik')" # OSM mapnik map +CHIMERE_MAP_LAYER = "new OpenLayers.Layer.OSM.Mapnik('Mapnik')" # OSM mapnik map DEBUG = True TEMPLATE_DEBUG = DEBUG |