Graham Dumpleton
graham.dumpleton at gmail.com
Tue Apr 27 07:15:18 EDT 2010
On 27 April 2010 21:03, Peter Bleackley <peter.bleackley at rd.bbc.co.uk> wrote: > I've used mod_python in the past, but since I believe it's now deprecated in > favour of mod_wsgi, I'd like to use the latter for my next web app. > > Unfortunately, whereas mod_python had extensive documentation and tutorials > available online, for mod_wsgi I've been unable to find anything more > sophisticated that "Hello world". Does anyone know where there's some > example code I could look at? The mod_wsgi module is a means of hosting any Python web framework or application that supports the WSGI interface. The mod_wsgi module isn't a framework in itself whereas mod_python is in part due to its high level handlers. Thus, what you should be doing is simply selecting any of the separate Python web frameworks that support WSGI and use them, following their specific documentation. The more popular full featured frameworks are Django, TurboGears, Pylons, CherryPy and web2py. At the other end are WSGI component libraries such as Werkzeug and Paste, which you can use to construct a custom framework specific to your needs. There are also now micro frameworks such as Flask. So, have a look at those. You can find a large list of other WSGI supporting frameworks at: http://www.wsgi.org/wsgi/Frameworks You will also find various articles about WSGI at: http://www.wsgi.org/wsgi/Learn_WSGI Graham
|