my problem at the moment is that my redirect won't reload the page.
I send a post request to my web server to get my informations. On the server site like "/wait" i wait until i get a post request. The post request will be catched in another route like "/request". And here it should be reloaded with a redirect to the "/wait" url but don't work and i don't know why.
@app.route("/request", methods=["POST"])
def request():
received_data = request.data.decode()
data = load_csv(received_data)
return redirect(url_for("request"))
@app.route("/wait")
def wait():
if data :
return redirect("https://google.com")
else:
return render_template('wait.html')
I don't know why the redirect from the request won' t work.