From b442532768fb2e7cc2014e0e52f2be64a76a6396 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 15 Jun 2020 20:49:10 +0200 Subject: [PATCH] Reload map template on form submit --- app/__init__.py | 1 + app/routes.py | 2 +- app/templates/visualization.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index a996400..0d7f840 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -5,6 +5,7 @@ from flask_bootstrap import Bootstrap app = Flask(__name__) app.secret_key = SECRET_KEY +app.config['TEMPLATES_AUTO_RELOAD'] = True bootstrap = Bootstrap(app) from app import errors, routes diff --git a/app/routes.py b/app/routes.py index 2e99bca..6663859 100644 --- a/app/routes.py +++ b/app/routes.py @@ -28,7 +28,7 @@ def visualization(): @app.route("/map") def map(): - return render_template("map.html", title="Map") + return render_template("map.html") @app.route("/photos") diff --git a/app/templates/visualization.html b/app/templates/visualization.html index 4087590..66db50f 100644 --- a/app/templates/visualization.html +++ b/app/templates/visualization.html @@ -8,7 +8,7 @@ {{ table|safe }}
- +

Back