summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/definingmodels.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-03-12 21:26:02 -0700
committerChris McDonough <chrism@plope.com>2012-03-12 21:26:02 -0700
commit23096163bbc6451c070eda6f1f441044950f817d (patch)
treea4e9c410a1a3da898d2d1a6506e0b38acc28beec /docs/tutorials/wiki2/definingmodels.rst
parent352f6adf5e55b1c2f4a0332056a6ef31984b2d30 (diff)
parent8ef9d8d2e63fc88ac7b960f34c0e34914ef2684e (diff)
downloadpyramid-23096163bbc6451c070eda6f1f441044950f817d.tar.gz
pyramid-23096163bbc6451c070eda6f1f441044950f817d.tar.bz2
pyramid-23096163bbc6451c070eda6f1f441044950f817d.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/tutorials/wiki2/definingmodels.rst')
-rw-r--r--docs/tutorials/wiki2/definingmodels.rst9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/tutorials/wiki2/definingmodels.rst b/docs/tutorials/wiki2/definingmodels.rst
index 2b8932a98..ca0493f32 100644
--- a/docs/tutorials/wiki2/definingmodels.rst
+++ b/docs/tutorials/wiki2/definingmodels.rst
@@ -21,11 +21,15 @@ Making Edits to ``models.py``
(or they may live in a Python subpackage of your application package named
``models``) , but this is only by convention.
-Here's what our ``models.py`` file should look like after this step:
+Open ``tutorial/tutorial/models.py`` file and edit it to look like the
+following:
.. literalinclude:: src/models/tutorial/models.py
:linenos:
:language: py
+ :emphasize-lines: 19-21,24,26,28
+
+(The highlighted lines are the ones that need to be changed.)
The first thing we've done is to do is remove the stock ``MyModel`` class
from the generated ``models.py`` file. The ``MyModel`` class is only a
@@ -122,7 +126,8 @@ Viewing the Application in a Browser
We can't. At this point, our system is in a "non-runnable" state; we'll need
to change view-related files in the next chapter to be able to start the
-application successfully. If you try to start the application, you'll wind
+application successfully. If you try to start the application (See
+:ref:`wiki2-start-the-application`), you'll wind
up with a Python traceback on your console that ends with this exception:
.. code-block:: text