I am new to python Flask, and may be trying to use Flask in a way it is not intended.
Can I call 2 routes from a ‘parent’ route?
@app.route("/parent_route")
# call route1 (by some means, this 'redirect' appears not to do anything)
x = redirect(url_for('/route1', methods=['GET']))
# call route2 (by some means), passing the output from route1
y = redirect(url_for('/route2', x=x, methods=['GET']))
# render the html page, passing the output from route2
return redirect(url_for("html_page", y=y))
@app.route("/route1", methods=['GET'])
# some processing, then ...
return x
@app.route("/route2/<x>", methods=['GET'])
# some processing, then ...
return y