0

render_template in Flask only seems to work when it's done at the end of a function, eg return render_template('index.html'). I have a long function where I want to update a webpage several times to keep the user updated with the progress. Should this just be split into several functions with each one rendering a new page?

ZhouW
  • 1,187
  • 3
  • 16
  • 39

0 Answers0