From b3f2985c8d8d84074ef32c104efb196d91a1f83a Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Fri, 9 Jun 2006 19:56:05 +0000 Subject: [PATCH] Add some wsgiref text --- Doc/whatsnew/whatsnew25.tex | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex index 77a6fd49c7c..dad763b55f3 100644 --- a/Doc/whatsnew/whatsnew25.tex +++ b/Doc/whatsnew/whatsnew25.tex @@ -2030,7 +2030,42 @@ Marc-Andr\'e Lemburg.} %====================================================================== %\subsection{The wsgiref package\label{module-wsgiref}} -% XXX write this +% XXX should this be in a PEP 333 section instead? +\begin{comment} + +The Web Server Gateway Interface (WSGI) v1.0 defines a standard +interface between web servers and Python web applications and is +described in \pep{333}. The \module{wsgiref} package is a reference +implementation of the WSGI specification. + +The package includes a basic HTTP server that will run a WSGI +application; this server is useful for debugging but isn't intended for +production use. + +% XXX structure of WSGI applications? +% XXX provide an example using Django or some other framework? + +\begin{verbatim} +from wsgiref import simple_server + +wsgi_app = ... + +host = '' +port = 8000 +httpd = make_server(host, port, wsgi_app) +httpd.serve_forever() +\end{verbatim} + + +\begin{seealso} + +\seepep{333}{Python Web Server Gateway Interface v1.0}{PEP written by +Phillip J. Eby.} + +\end{seealso} + + +\end{comment} % ====================================================================== \section{Build and C API Changes\label{build-api}}