Reputation: 128
edit: Ended up using the built-in render_template function to display output using Jinja2 markup, which proved to be a perfect solution.
Upvotes: 0
Views: 605
Reputation: 2480
Flask is a process and will keep running forever, unless it encounters a fatal exception.
Typically, a web server process exiting would be a terrible design.
Try this for the functionality you want: How to stop flask application without using ctrl-c
Upvotes: 2