Skip to content

Commit

Permalink
Clarifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Feb 17, 2014
1 parent c0587cc commit 3c6ea2e
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions docs/quick_tutorial/ini.rst
Expand Up @@ -98,18 +98,16 @@ the Pyramid chapter on

The ``.ini`` file is also used for two other functions:

- *Choice of WSGI server*. ``[server:main]`` wires up the choice of WSGI
*server* for your WSGI *application*. In this case, we are using
``wsgiref`` bundled in the Python library.
- *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.

- *Python logging*. Pyramid uses Python standard logging, which needs a
number of configuration values. The ``.ini`` serves this function.
- *Configuring Python logging*. Pyramid uses Python standard logging, which
needs a number of configuration values. The ``.ini`` serves this function.
This provides the console log output that you see on startup and each
request.

- *Port number*. ``port = 6543`` tells ``wsgiref`` to listen on port
6543.

We moved our startup code from ``app.py`` to the package's
``tutorial/__init__.py``. This isn't necessary,
but it is a common style in Pyramid to take the WSGI app bootstrapping
Expand All @@ -131,7 +129,7 @@ Extra Credit
might you want to do that?

#. The entry point in ``setup.py`` didn't mention ``__init__.py`` when
it the ``main`` function. Why not?
it declared ``tutorial:main`` function. Why not?

.. seealso::
:ref:`project_narr`,
Expand Down

0 comments on commit 3c6ea2e

Please sign in to comment.