summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2006-06-09 19:56:05 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2006-06-09 19:56:05 (GMT)
commitb3f2985c8d8d84074ef32c104efb196d91a1f83a (patch)
tree8cd55b1840d933bc151e18055cd94e38e8f27e0f /Doc/whatsnew
parent2007d4e89226e07d276b7245aa6b86a556d10214 (diff)
downloadcpython-b3f2985c8d8d84074ef32c104efb196d91a1f83a.zip
cpython-b3f2985c8d8d84074ef32c104efb196d91a1f83a.tar.gz
cpython-b3f2985c8d8d84074ef32c104efb196d91a1f83a.tar.bz2
Add some wsgiref text
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/whatsnew25.tex37
1 files changed, 36 insertions, 1 deletions
diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex
index 77a6fd4..dad763b 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}}