Search code examples
pythoniis-6cherrypyisapi-wsgi

CherryPy3 and IIS 6.0


I have a small Python web application using the Cherrypy framework. I am by no means an expert in web servers.

I got Cherrypy working with Apache using mod_python on our Ubuntu server. This time, however, I have to use Windows 2003 and IIS 6.0 to host my site.

The site runs perfectly as a stand alone server - I am just so lost when it comes to getting IIS running. I have spent the past day Googling and blindly trying any and everything to get this running.

I have all the various tools installed that websites have told me to (Python 2.6, CherrpyPy 3, ISAPI-WSGI, PyWin32) and have read all the documentation I can. This blog was the most helpful:

http://whatschrisdoing.com/blog/2008/07/10/turbogears-isapi-wsgi-iis/

But I am still lost as to what I need to run my site. I can't find any thorough examples or how-to's to even start with. I hope someone here can help!

Cheers.


Solution

  • OK, I got it working. Thanks to Jason and all his help. I needed to call

    cherrypy.config.update({
      'tools.sessions.on': True
    })
    return cherrypy.tree.mount(Root(), '/', config=path_to_config)
    

    I had this in the config file under [/] but for some reason it did not like that. Now I can get my web app up and running - then I think I will try and work out why it needs that config update and doesn't like the config file I have...