]> granicus.if.org Git - python/commitdiff
Add some wsgiref text
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 9 Jun 2006 19:56:05 +0000 (19:56 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 9 Jun 2006 19:56:05 +0000 (19:56 +0000)
Doc/whatsnew/whatsnew25.tex

index 77a6fd49c7ce37ef5c7cd07537ff5f0d8b51dec6..dad763b55f3bc69cc10d3854316d672553301d30 100644 (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}}