Adding a production server to Python Flask in Windows

There's many WSGI servers you can use to serve a Flask application. If you really need to deploy it to Windows, then I did find NWSGI, which might be worth a look.

I think it's fair to say that WSGI servers are few and far between on Windows, as this list only mentioned NWSGI. Unless you have a very good reason to deploy to Windows, I think you're probably better off opting for a *nix environment.


Even with this question answered I wanted to add that you can run wsgi apps on IIS which is a production level web server.

the easiest example is how flask can run on azure (IIS) but I saw a link explaining it even better https://heejune.me/2015/04/22/running-python-flask-on-a-local-iis-not-azure-with-wfastcgi-py/


Waitress is a pure python solution for both Windows and Nix platforms that is no more complex to set up than the development server.

Tags:

Python

Flask