summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial/ini.rst
diff options
context:
space:
mode:
authorChris Shenton <chris@v-studios.com>2017-10-21 15:35:25 +0200
committerChris Shenton <chris@v-studios.com>2017-10-21 15:35:25 +0200
commitcfc8fbe0e1380c06b01643f8310ae59ea0af820b (patch)
tree3e00f3c55f1282d8a6a239212ab3465469848415 /docs/quick_tutorial/ini.rst
parent6b234227d5da6294c51d476225472f5370ba0af5 (diff)
downloadpyramid-cfc8fbe0e1380c06b01643f8310ae59ea0af820b.tar.gz
pyramid-cfc8fbe0e1380c06b01643f8310ae59ea0af820b.tar.bz2
pyramid-cfc8fbe0e1380c06b01643f8310ae59ea0af820b.zip
Quick Tutorial: Replace wsgiref with waitress
In setup.py add waitress import. In development.ini use waitress. Adjust line number highlighting. Mention that we're using it early in the tutorial. Addresses #2926
Diffstat (limited to 'docs/quick_tutorial/ini.rst')
-rw-r--r--docs/quick_tutorial/ini.rst11
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/quick_tutorial/ini.rst b/docs/quick_tutorial/ini.rst
index 96dfc5b5f..c478d6784 100644
--- a/docs/quick_tutorial/ini.rst
+++ b/docs/quick_tutorial/ini.rst
@@ -89,7 +89,7 @@ application. Processing then proceeds as described in the Pyramid chapter on
- ``pserve`` looks for ``[app:main]`` and finds ``use = egg:tutorial``.
-- The projects's ``setup.py`` has defined an "entry point" (lines 9-12) for the
+- The projects's ``setup.py`` has defined an "entry point" (lines 10-13) for the
project's "main" entry point of ``tutorial:main``.
- The ``tutorial`` package's ``__init__`` has a ``main`` function.
@@ -99,10 +99,11 @@ application. Processing then proceeds as described in the Pyramid chapter on
The ``.ini`` file is also used for two other functions:
-- *Configuring the WSGI server*. ``[server:main]`` wires up the choice of which
- WSGI *server* for your WSGI *application*. In this case, we are using
- ``wsgiref`` bundled in the Python library. It also wires up the *port
- number*: ``port = 6543`` tells ``wsgiref`` to listen on port 6543.
+- *Configuring the WSGI server*. ``[server:main]`` wires up the choice
+ of which WSGI *server* for your WSGI *application*. In this case, we
+ are using ``waitress`` which was specified in
+ ``tutorial/setup.py``. It also wires up the *port number*: ``listen
+ = localhost:6543`` tells ``waitress`` to listen on port 6543.
- *Configuring Python logging*. Pyramid uses Python standard logging, which
needs a number of configuration values. The ``.ini`` serves this function.