summaryrefslogtreecommitdiff
path: root/docs/narr/project.rst
diff options
context:
space:
mode:
authorCasey Duncan <casey.duncan@gmail.com>2010-11-30 19:46:45 -0700
committerCasey Duncan <casey.duncan@gmail.com>2010-11-30 19:46:45 -0700
commit031d9f20baee7f57534a805809ac6a11319330ce (patch)
tree9ab03b9fca24b5542441649eecf287f9e9f48e92 /docs/narr/project.rst
parent3f0f1a7c9e0177352023bbe67b1eddf9185d759a (diff)
parent5238ae329fb70e5e386db0b127d958c8523d7247 (diff)
downloadpyramid-031d9f20baee7f57534a805809ac6a11319330ce.tar.gz
pyramid-031d9f20baee7f57534a805809ac6a11319330ce.tar.bz2
pyramid-031d9f20baee7f57534a805809ac6a11319330ce.zip
Merge https://github.com/Pylons/pyramid
Diffstat (limited to 'docs/narr/project.rst')
-rw-r--r--docs/narr/project.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/narr/project.rst b/docs/narr/project.rst
index c676917b4..6036feb90 100644
--- a/docs/narr/project.rst
+++ b/docs/narr/project.rst
@@ -268,7 +268,7 @@ points to *your application* as opposed to any other section within the
``.ini`` file. For example, if your application ``.ini`` file might have a
``[app:MyProject]`` section that looks like so:
-.. code-block:: guess
+.. code-block:: ini
:linenos:
[app:MyProject]
@@ -941,6 +941,7 @@ Then change the __init__.py of your myproject project (*not* the
parent directory). For example, from something like:
.. code-block:: python
+ :linenos:
config.add_view('myproject.views.my_view',
renderer='myproject:templates/mytemplate.pt')
@@ -948,6 +949,7 @@ parent directory). For example, from something like:
To this:
.. code-block:: python
+ :linenos:
config.add_view('myproject.views.blogs.my_view',
renderer='myproject:templates/mytemplate.pt')
@@ -957,6 +959,7 @@ views or handler classes/functions within those files via the dotted name
passed as the first argument to ``add_view``. For example:
.. code-block:: python
+ :linenos:
config.add_view('myproject.views.anothermodule.my_view',
renderer='myproject:templates/anothertemplate.pt')