Add some wsgiref text

This commit is contained in:
Andrew M. Kuchling 2006-06-09 19:56:05 +00:00
parent 2007d4e892
commit b3f2985c8d
1 changed files with 36 additions and 1 deletions

View File

@ -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}}