From e5e0ad8823ab078970c42a99723240544528de9c Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 9 Sep 2016 20:42:17 +0200 Subject: [PATCH] Add LEAFLET_STORAGE_KEEP_VERSIONS --- umap/settings/base.py | 1 + umap/settings/local.py.sample | 8 ++++---- umap/templates/registration/login.html | 1 - 3 files changed, 5 insertions(+), 5 deletions(-) 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 %}
{% trans "Please choose a provider" %}
-