Hi, On Jan 17, 7:11 am, Scott Benjamin <[EMAIL PROTECTED]> wrote: > I need to get something thrown together quickly and I'm wondering if > anyone has a very short/quick example of how to deploy a Werkzeug app > using CGI.
There are two very simple ways. Assuming your WSGI application object is called "application" and you are using Python with wsgiref installed you can do this:: #!/usr/bin/env python from wsgiref.handlers import CGIHandler from yourapplication import application CGIHandler().run(application) If you don't have wsgiref and you don't want to install it (it's bultin with Python 2.5, but requires extra installation with other versions) you can use the snippet in the PEP 333. Regards, Armin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pocoo-libs?hl=en -~----------~----~----~----~------~----~------~--~---
