WSGI talk code now online
At the September 2009 Detroit Perlmongers / dynamic language meetup I gave a talk on Python and WSGI.
I walked through six different examples showing what WSGI is and some parts of the WSGI web development ecosystem. The six examples were:
- the simplest WSGI app, serving the same app under different servers
def application(environ, start_response): '''The simplest WSGI app.''' start_response('200 OK', [('content-type', 'text/html')]) return ['<h1>Hello world</h1>']
- request and response wrapping, introduction to middleware
- an example of middleware
- a fleshed out app with templates, URL routing, and some more middleware
- form generation and validation
- using an existing app with authentication / authorization middleware
You can find the code and instructions for running the examples on Bitbucket.