Hacker News new | ask | show | jobs
by schleppy_oc 4799 days ago
Out of curiosity, how do you inject your own request_handler if you are running behind something like uwsgi/nginx where you only specify the wsgi container and don't ever call run yourself? It appears the request_handler is only passed on through to werkzeug via run(kwargs).
1 comments

You don't, he just hacked the development server Flask uses, you shouldn't use it in production anyway.

The better and more general approach would be using a WSGI middleware.