diff options
| author | Chris McDonough <chrism@plope.com> | 2011-07-10 00:09:29 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-07-10 00:09:29 -0400 |
| commit | b45a60617e1f7e89289acf8d1df921696fa3e0a0 (patch) | |
| tree | 3070ee582ae360fd5da363f0404acac4b212746d /docs/narr/viewconfig.rst | |
| parent | 8cad6080cda9a72902333a70c20b58c5ea02226c (diff) | |
| parent | 9e7162eb7f584e8afdbc2f04846d0d7e1fcf676c (diff) | |
| download | pyramid-b45a60617e1f7e89289acf8d1df921696fa3e0a0.tar.gz pyramid-b45a60617e1f7e89289acf8d1df921696fa3e0a0.tar.bz2 pyramid-b45a60617e1f7e89289acf8d1df921696fa3e0a0.zip | |
Merge branch 'feature.pshell' of https://github.com/mmerickel/pyramid into mmerickel-feature.pshell
Diffstat (limited to 'docs/narr/viewconfig.rst')
| -rw-r--r-- | docs/narr/viewconfig.rst | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/narr/viewconfig.rst b/docs/narr/viewconfig.rst index ec42446ff..67ac39259 100644 --- a/docs/narr/viewconfig.rst +++ b/docs/narr/viewconfig.rst @@ -795,10 +795,11 @@ For a big application with several views, it can be hard to keep the view configuration details in your head, even if you defined all the views yourself. You can use the ``paster pviews`` command in a terminal window to print a summary of matching routes and views for a given URL in your -application. The ``paster pviews`` command accepts three arguments. The -first argument to ``pviews`` is the path to your application's ``.ini`` file. -The second is the ``app`` section name inside the ``.ini`` file which points -to your application. The third is the URL to test for matching views. +application. The ``paster pviews`` command accepts two arguments. The +first argument to ``pviews`` is the path to your application's ``.ini`` file +and section name inside the ``.ini`` file which points to your application. +This should be of the format ``config_file#section_name``. The second argument +is the URL to test for matching views. Here is an example for a simple view configuration using :term:`traversal`: @@ -829,7 +830,7 @@ A more complex configuration might generate something like this: .. code-block:: text :linenos: - $ ../bin/paster pviews development.ini shootout /about + $ ../bin/paster pviews development.ini#shootout /about URL = /about |
