summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-01-02 04:50:43 -0500
committerChris McDonough <chrism@plope.com>2011-01-02 04:50:43 -0500
commit3d187b491e2f8a2e4ac700f0b229d9d2bb92daa2 (patch)
tree1a8c5120ba00480a6f63013d6ea86ac900e6a281 /docs
parentc35a792f38cf29ec5358b8236a41f935dd8969cc (diff)
downloadpyramid-3d187b491e2f8a2e4ac700f0b229d9d2bb92daa2.tar.gz
pyramid-3d187b491e2f8a2e4ac700f0b229d9d2bb92daa2.tar.bz2
pyramid-3d187b491e2f8a2e4ac700f0b229d9d2bb92daa2.zip
typo, add example
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/project.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/narr/project.rst b/docs/narr/project.rst
index 55a2711f3..d572256a0 100644
--- a/docs/narr/project.rst
+++ b/docs/narr/project.rst
@@ -958,12 +958,14 @@ To this:
.. code-block:: python
:linenos:
- config.add_view('myproject.views.blogs.my_view',
+ config.add_view('myproject.views.blog.my_view',
renderer='myproject:templates/mytemplate.pt')
You can then continue to add files to the ``views`` directory, and refer to
views or handler classes/functions within those files via the dotted name
-passed as the first argument to ``add_view``. For example:
+passed as the first argument to ``add_view``. For example, if you added a
+file named ``anothermodule.py`` to the ``views`` subdirectory, and added a
+view callable named ``my_view`` to it:
.. code-block:: python
:linenos: