Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you set up a Python WSGI server under IIS?

I work in a Windows environment and would prefer to deploy code to IIS. At the same time I would like to code in Python.

Having read that IIS can run fastCGI application, I went to the IIS site where it describes in detail how to get PHP up and running but not much about anything else.

Does anyone have experience getting a Python framework running under IIS using something other that plain old CGI?

If so can you explain to direct me to some instructions on setting this up?

like image 770
minty Avatar asked Sep 06 '08 04:09

minty


People also ask

How do I start WSGI application?

Your First WSGI AppCall it app.py and run it with any WSGI-compatible server and you'll get a Hello World response with a 200 status. You can use gunicorn for this; just install it via pip ( pip install gunicorn ) and run it with gunicorn app:app .

How does WSGI work Python?

The server executes the web app and sends related information and a callback function to the app. The request is processed on the app side, and a response is sent back to the server utilizing the callback function. Sometimes there might be one or more WSGI middlewares between the server and the web app.


1 Answers

There shouldn't be any need to use FastCGI. There exists a ISAPI extension for WSGI.

like image 82
John Millikin Avatar answered Oct 09 '22 03:10

John Millikin