fastcgi WSGI, , fastcgi .
test.fgi, :
from fcgi import WSGIServer
def app(env, start):
start('200 OK', [('Content-Type', 'text/plain')])
yield 'Hello, World!\n'
yield '\n'
yield 'Your environment is:\n'
for k, v in sorted(env.items()):
yield '\t%s: %r\n' % (k, v)
WSGIServer(app).run()