diff options
| author | Casey Duncan <casey.duncan@gmail.com> | 2010-11-19 23:25:44 -0700 |
|---|---|---|
| committer | Casey Duncan <casey.duncan@gmail.com> | 2010-11-19 23:25:44 -0700 |
| commit | b6f6e5506fa51a79eb5b0bb3c95b01878526fbff (patch) | |
| tree | 277dbc6019c7f5b0f2cb1b35074186e247f526a8 /docs/tutorials/wiki2/basiclayout.rst | |
| parent | 673d55a3188d88c5fcf66062a894818a66722334 (diff) | |
| parent | dd53294c3342f58e0fb62b20ad61e59c1f88ac8b (diff) | |
| download | pyramid-b6f6e5506fa51a79eb5b0bb3c95b01878526fbff.tar.gz pyramid-b6f6e5506fa51a79eb5b0bb3c95b01878526fbff.tar.bz2 pyramid-b6f6e5506fa51a79eb5b0bb3c95b01878526fbff.zip | |
merge changes from master
Diffstat (limited to 'docs/tutorials/wiki2/basiclayout.rst')
| -rw-r--r-- | docs/tutorials/wiki2/basiclayout.rst | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/docs/tutorials/wiki2/basiclayout.rst b/docs/tutorials/wiki2/basiclayout.rst index 9aca94fe5..9bcc17e97 100644 --- a/docs/tutorials/wiki2/basiclayout.rst +++ b/docs/tutorials/wiki2/basiclayout.rst @@ -52,10 +52,7 @@ entry point happens to be the ``app`` function within the file named deployment-related values such as ``reload_templates``, ``db_string``, etc. -#. *Line 15*. We call :meth:`pyramid.configuration.Configurator.begin` which - tells the configuration machinery we are starting configuration. - -#. *Line 16*. We call +#. *Line 15*. We call :meth:`pyramid.configuration.Configurator.add_static_view` with the arguments ``static`` (the name), and ``tutorial:static`` (the path). This registers a static resource view which will match any URL that starts with @@ -67,7 +64,7 @@ entry point happens to be the ``app`` function within the file named ``/static/foo``) will be used to compose a path to a static file resource, such as a CSS file. -#. *Lines 17-18*. Register a :term:`route configuration` via the +#. *Lines 16-17*. Register a :term:`route configuration` via the :meth:`pyramid.configuration.Configurator.add_route` method that will be used when the URL is ``/``. Since this route has an ``pattern`` equalling ``/`` it is the "default" route. The argument named ``view`` with the @@ -81,10 +78,7 @@ entry point happens to be the ``app`` function within the file named ``tutorial.views.my_view`` view returns a dictionary, a :term:`renderer` will use this template to create a response. -#. *Line 19*. We call :meth:`pyramid.configuration.Configurator.end` which - tells the configuration machinery we are ending configuration. - -#. *Line 20*. We use the +#. *Line 18*. We use the :meth:`pyramid.configuration.Configurator.make_wsgi_app` method to return a :term:`WSGI` application. |
