Wednesday, September 3, 2014

Enable Threading - Flask

If you're going to be expecting more than one user on your flask server, you need to enable threading like this:'', port=5000, threaded=True)

Unfortunately, the threading makes Ctrl+C not work sometimes and I'll have to kill the thread manually.

For better solutions for production, check out these WSGI solutions:

No comments:

Post a Comment