Jan-20-2020, 10:09 PM
(This post was last modified: Jan-20-2020, 10:09 PM by keuninkske.)
hello,
i am wondering if flask has the ability to render the template already halfway trough the calculation
following is example code
thanks for any help
i am wondering if flask has the ability to render the template already halfway trough the calculation
following is example code
@app.route('/') def my_form(): return render_template("interface.html") @app.route('/', methods=['POST']) def my_form_post(): time.sleep(5) result = "1" render_template("interface.html", result=result) time.sleep(5) result = "2" render_template("interface.html", result=result) time.sleep(5) result = "3" return render_template("interface.html", result=result)i cannot find online how to make this happen
thanks for any help