diff options
| author | Chris McDonough <chrism@plope.com> | 2012-08-29 16:06:40 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2012-08-29 16:06:40 -0400 |
| commit | a7051f17a6f352193b4f4b7f1bcc635dff452001 (patch) | |
| tree | 33b3a6d6994137b6423f2f4d9ac2dc1a0e3ab717 /docs/narr/firstapp.rst | |
| parent | 8b55a68adb54783895a91a9e1af800a7f8f22c07 (diff) | |
| parent | a9289d95036eb23e973815e529d3db3fea235046 (diff) | |
| download | pyramid-a7051f17a6f352193b4f4b7f1bcc635dff452001.tar.gz pyramid-a7051f17a6f352193b4f4b7f1bcc635dff452001.tar.bz2 pyramid-a7051f17a6f352193b4f4b7f1bcc635dff452001.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/narr/firstapp.rst')
| -rw-r--r-- | docs/narr/firstapp.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/narr/firstapp.rst b/docs/narr/firstapp.rst index a86826d86..ccaa6e9e2 100644 --- a/docs/narr/firstapp.rst +++ b/docs/narr/firstapp.rst @@ -127,7 +127,7 @@ defined imports and function definitions, placed within the confines of an .. literalinclude:: helloworld.py :linenos: - :lines: 8-13 + :lines: 9-15 Let's break this down piece-by-piece. @@ -136,7 +136,7 @@ Configurator Construction .. literalinclude:: helloworld.py :linenos: - :lines: 8-9 + :lines: 9-10 The ``if __name__ == '__main__':`` line in the code sample above represents a Python idiom: the code inside this if clause is not invoked unless the script @@ -169,7 +169,7 @@ Adding Configuration .. ignore-next-block .. literalinclude:: helloworld.py :linenos: - :lines: 10-11 + :lines: 11-12 First line above calls the :meth:`pyramid.config.Configurator.add_route` method, which registers a :term:`route` to match any URL path that begins @@ -189,7 +189,7 @@ WSGI Application Creation .. ignore-next-block .. literalinclude:: helloworld.py :linenos: - :lines: 12 + :lines: 13 After configuring views and ending configuration, the script creates a WSGI *application* via the :meth:`pyramid.config.Configurator.make_wsgi_app` @@ -218,7 +218,7 @@ WSGI Application Serving .. ignore-next-block .. literalinclude:: helloworld.py :linenos: - :lines: 13 + :lines: 14-15 Finally, we actually serve the application to requestors by starting up a WSGI server. We happen to use the :mod:`wsgiref` ``make_server`` server |
