summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki/definingmodels.rst
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2016-04-12 18:03:57 -0600
committerBert JW Regeer <bertjw@regeer.org>2016-04-12 18:03:57 -0600
commitf3420699895969e825913da51dedfa5b880bc7d5 (patch)
tree40bace55d7c03e53c490b465df2b5b27e024b1a6 /docs/tutorials/wiki/definingmodels.rst
parentc8a9a4a279b7568657c5dc3e8f2ad8da31be5890 (diff)
parentefaf7300c9c3ef2a795aae7f724bf5b02e96cd75 (diff)
downloadpyramid-f3420699895969e825913da51dedfa5b880bc7d5.tar.gz
pyramid-f3420699895969e825913da51dedfa5b880bc7d5.tar.bz2
pyramid-f3420699895969e825913da51dedfa5b880bc7d5.zip
Merge branch 'master' into feature/BeforeTraversal
Diffstat (limited to 'docs/tutorials/wiki/definingmodels.rst')
-rw-r--r--docs/tutorials/wiki/definingmodels.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/tutorials/wiki/definingmodels.rst b/docs/tutorials/wiki/definingmodels.rst
index 859e902ab..73dce14d5 100644
--- a/docs/tutorials/wiki/definingmodels.rst
+++ b/docs/tutorials/wiki/definingmodels.rst
@@ -1,9 +1,11 @@
+.. _wiki_defining_the_domain_model:
+
=========================
Defining the Domain Model
=========================
-The first change we'll make to our stock pcreate-generated application will be
-to define two :term:`resource` constructors, one representing a wiki page,
+The first change we'll make to our stock ``pcreate``-generated application will
+be to define two :term:`resource` constructors, one representing a wiki page,
and another representing the wiki as a mapping of wiki page names to page
objects. We'll do this inside our ``models.py`` file.
@@ -38,8 +40,7 @@ Edit ``models.py``
or they may live in a Python subpackage of your application package named
``models``, but this is only by convention.
-Open ``tutorial/tutorial/models.py`` file and edit it to look like the
-following:
+Open ``tutorial/models.py`` file and edit it to look like the following:
.. literalinclude:: src/models/tutorial/models.py
:linenos: