summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2014-02-16 21:20:59 -0500
committerTres Seaver <tseaver@palladion.com>2014-02-16 21:20:59 -0500
commit3c6ea2ef47488ef800ed9bc9981726b1dc6f5839 (patch)
treeda63aad4d12d1af5649a6da0ac572a450c8e7d17 /docs/quick_tutorial
parentc0587cc2fce880950e5da4b34cc23c9df94893a2 (diff)
downloadpyramid-3c6ea2ef47488ef800ed9bc9981726b1dc6f5839.tar.gz
pyramid-3c6ea2ef47488ef800ed9bc9981726b1dc6f5839.tar.bz2
pyramid-3c6ea2ef47488ef800ed9bc9981726b1dc6f5839.zip
Clarifications.
Diffstat (limited to 'docs/quick_tutorial')
-rw-r--r--docs/quick_tutorial/ini.rst16
1 files changed, 7 insertions, 9 deletions
diff --git a/docs/quick_tutorial/ini.rst b/docs/quick_tutorial/ini.rst
index 618b8e5e8..3402c50e8 100644
--- a/docs/quick_tutorial/ini.rst
+++ b/docs/quick_tutorial/ini.rst
@@ -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
@@ -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`,