Reload map template on form submit
This commit is contained in:
parent
f15ff39090
commit
b442532768
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{{ table|safe }}
|
||||
</div>
|
||||
<div class="col-md-1">
|
||||
<iframe class="map", src="/map" width="350" height="350"></iframe>
|
||||
<iframe id="map", src="/map" width="350" height="350"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<p><a href="{{ url_for('data') }}">Back</a></p>
|
||||
|
|
Loading…
Reference in New Issue