Add LEAFLET_STORAGE_KEEP_VERSIONS

This commit is contained in:
Yohan Boniface 2016-09-09 20:42:17 +02:00
parent 5ca8b3f6a1
commit e5e0ad8823
3 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -1,7 +1,6 @@
{% load i18n %}
<h5>{% trans "Please choose a provider" %}</h5>
<div>
<ul class="login-grid block-grid">
{% for name in backends.backends %}