I would like to make my app asynchronous, and for that I was thinking of using either Gevent or Tornado to do so. But was unable to find any clear information on how to do this.
I tried editing my WSGI config file (no, I didn't know what I was doing) and changed this line:
from flask_app import app as application
...to this:
from gevent.wsgi import WSGIServer
from flask_app import app
application = WSGIServer(("", 5000), app)
As I anticipated, it did not work. I am guessing that it's because I specified a port number. What is the correct way to do this?