diff options
| author | Steve Piercy <web@stevepiercy.com> | 2017-10-22 10:02:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-22 10:02:21 +0200 |
| commit | 58831496b8db4e590fadfd41dae733dc1a2e6fc5 (patch) | |
| tree | f650edf32ad5f79f94792fe00d63273fec6ab58f /docs/quick_tutorial/ini.rst | |
| parent | cc341a6b2913d2ecef56a3ed3fe18f3557041202 (diff) | |
| parent | 30bf7300404c1259d6558d58713933a5a067eeee (diff) | |
| download | pyramid-58831496b8db4e590fadfd41dae733dc1a2e6fc5.tar.gz pyramid-58831496b8db4e590fadfd41dae733dc1a2e6fc5.tar.bz2 pyramid-58831496b8db4e590fadfd41dae733dc1a2e6fc5.zip | |
Merge pull request #3180 from shentonfreude/feature/GH#2926_quick_tutorial_wsgiref_to_waitress
Feature/gh#2926 quick tutorial wsgiref to waitress
Diffstat (limited to 'docs/quick_tutorial/ini.rst')
| -rw-r--r-- | docs/quick_tutorial/ini.rst | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/quick_tutorial/ini.rst b/docs/quick_tutorial/ini.rst index 96dfc5b5f..f6d64eeda 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,12 @@ 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 host + ``localhost`` at port ``6543``. - *Configuring Python logging*. Pyramid uses Python standard logging, which needs a number of configuration values. The ``.ini`` serves this function. |
