diff --git a/umap/settings/base.py b/umap/settings/base.py index 3bc0d4b9..a308f2c0 100644 --- a/umap/settings/base.py +++ b/umap/settings/base.py @@ -153,6 +153,7 @@ LEAFLET_STORAGE_EXTRA_URLS = { 'routing': 'http://www.openstreetmap.org/directions?engine=osrm_car&route={lat},{lng}&locale={locale}#map={zoom}/{lat}/{lng}', # noqa 'ajax_proxy': '/ajax-proxy/?url={url}' } +LEAFLET_STORAGE_KEEP_VERSIONS = 10 SITE_URL = "http://umap.org" SITE_NAME = 'uMap' UMAP_DEMO_SITE = False diff --git a/umap/settings/local.py.sample b/umap/settings/local.py.sample index f65e4993..ec5e208d 100644 --- a/umap/settings/local.py.sample +++ b/umap/settings/local.py.sample @@ -87,7 +87,7 @@ SHORT_SITE_URL = "http://s.hort" # POSTGIS_VERSION = (2, 1, 0) EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' -# You need to unable accent extension before using UMAP_USE_UNACCENT +# You need to unable accent extension before using UMAP_USE_UNACCENT # python manage.py dbshell # CREATE EXTENSION unaccent; UMAP_USE_UNACCENT = False @@ -98,10 +98,10 @@ STATIC_ROOT = '/home/umap/.virtualenvs/umap/var/static' # For users' statics (geojson mainly) MEDIA_ROOT = '/home/umap/.virtualenvs/umap/var/uploads' -# MapQuest API key -MAPQUEST_KEY = '' - # Default map location for new maps LEAFLET_LONGITUDE = 2 LEAFLET_LATITUDE = 51 LEAFLET_ZOOM = 6 + +# Number of old version to keep per datalayer. +LEAFLET_STORAGE_KEEP_VERSIONS = 10 diff --git a/umap/templates/registration/login.html b/umap/templates/registration/login.html index de881055..eb5b8783 100644 --- a/umap/templates/registration/login.html +++ b/umap/templates/registration/login.html @@ -1,7 +1,6 @@ {% load i18n %}