Re: Trying to learn mod_wsgi - any code samples or tutorials?
Doug Epling <wdepli-eTB/42tb3KxWk0Htik3J/[email protected]> Tue, 27 Apr 2010 19:26:30 -0400
| Newsgroups | gmane.comp.python.mod_python |
|---|---|
| Message-ID | <[email protected]> |
On 4/27/2010 7:15 AM, Graham Dumpleton wrote: > On 27 April 2010 21:03, Peter Bleackley<peter.bleackley-gjMux1o1B1/[email protected]> 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 > _______________________________________________ > Mod_python mailing list > [email protected] > http://mailman.modpython.org/mailman/listinfo/mod_python > > I have played with Werkzeug and I really like it. However, if it is documentation you want Pylons might be the way to go. There is a free book at http://pylonsbook.com/en/1.1/ copyright circa 2009.