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?
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 .
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.
There shouldn't be any need to use FastCGI. There exists a ISAPI extension for WSGI.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With