So I have this python page running on flask. It works fine until I want to have a redirect.
@app.route("/last_visit")
def check_last_watered():templateData = template(text = water.get_last_watered())return render_template('main.html', **templateData)return redirect(url_for('new_page')) #with a delay here of 3 secs
The site works fine, but does not redirect and I wouldn't know how to delay the whole thing. Ideas... Please :-)