# HG changeset patch # User paulb # Date 1190933438 0 # Node ID 4779305d43113d7fc2de96af967215f614b2cf76 # Parent e9540f622fb68b1bdedf82b8ed7f5790d947ee7d [project @ 2007-09-27 22:50:38 by paulb] Added support for WSGI on wsgiref. diff -r e9540f622fb6 -r 4779305d4311 docs/WSGI/NOTES.txt --- a/docs/WSGI/NOTES.txt Thu Sep 27 22:50:07 2007 +0000 +++ b/docs/WSGI/NOTES.txt Thu Sep 27 22:50:38 2007 +0000 @@ -1,8 +1,16 @@ -Currently, the WSGI examples use the WSGI CGI handler code found in PEP 333 -and placed in the wsgi_cgi module. Deploying in other environments would +The WSGI examples provide support for the wsgiref.simple_server module +(available in Python 2.5 and later) and the WSGI CGI handler code found in PEP +333 and placed in the wsgi_cgi module. Deploying in other environments would require slightly different "glue code" to be written. --------- +Deploying with wsgiref.simple_server +==================================== + +The examples/WSGI/*App.py programs (eg. examples/WSGI/SimpleApp.py) can be run +directly - these will employ the WSGI server in the Python standard library. + +Deploying in CGI Environments +============================= Declare the script in httpd.conf or equivalent Web server configuration file. For example: