From bc9fd155e6c630155e5002bb830845db416e0f27 Mon Sep 17 00:00:00 2001 From: Robin Champenois Date: Sun, 31 Jan 2021 23:48:46 +0100 Subject: [PATCH] Fix map & settings --- avisstage/static/js/select_lieu.js | 2 +- experiENS/settings_dev.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/avisstage/static/js/select_lieu.js b/avisstage/static/js/select_lieu.js index ecb4f56..ef7d8ce 100644 --- a/avisstage/static/js/select_lieu.js +++ b/avisstage/static/js/select_lieu.js @@ -66,7 +66,7 @@ function SelectLieuWidget(STATIC_ROOT, API_LIEU, MAPBOX_API_KEY, target, callbac var layer = L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}', { attribution: 'Map data © OpenStreetMap contributors, CC-BY-SA, Imagery © Mapbox', maxZoom: 18, - id: 'mapbox.streets', + id: 'mapbox/streets-v11', accessToken: MAPBOX_API_KEY }); map.addLayer(layer); diff --git a/experiENS/settings_dev.py b/experiENS/settings_dev.py index e031652..8c0c9b3 100644 --- a/experiENS/settings_dev.py +++ b/experiENS/settings_dev.py @@ -16,9 +16,9 @@ if USE_DEBUG_TOOLBAR: 'debug_toolbar', ] - MIDDLEWARE_CLASSES = ( + MIDDLEWARE = ( 'debug_toolbar.middleware.DebugToolbarMiddleware', - ) + MIDDLEWARE_CLASSES + ) + MIDDLEWARE INTERNAL_IPS = ['127.0.0.1']