summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/definingmodels.rst
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2016-02-07 13:57:51 -0600
committerMichael Merickel <michael@merickel.org>2016-02-07 13:57:51 -0600
commitd1cb34643e086ac74965455b486ce0058764324f (patch)
tree56a344664e9a49c54b6dd7ad03a0f709500e0dc6 /docs/tutorials/wiki2/definingmodels.rst
parent21d69fd97b66401264746bb7dad1e8d4bd2491b9 (diff)
downloadpyramid-d1cb34643e086ac74965455b486ce0058764324f.tar.gz
pyramid-d1cb34643e086ac74965455b486ce0058764324f.tar.bz2
pyramid-d1cb34643e086ac74965455b486ce0058764324f.zip
assume the user is in the tutorial folder
this is already assumed inside of installation where commands are run relative to setup.py
Diffstat (limited to 'docs/tutorials/wiki2/definingmodels.rst')
-rw-r--r--docs/tutorials/wiki2/definingmodels.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/tutorials/wiki2/definingmodels.rst b/docs/tutorials/wiki2/definingmodels.rst
index b38177d04..9b517994f 100644
--- a/docs/tutorials/wiki2/definingmodels.rst
+++ b/docs/tutorials/wiki2/definingmodels.rst
@@ -14,11 +14,12 @@ Edit ``mymodel.py``
There is nothing special about the filename ``mymodel.py``. A
project may have many models throughout its codebase in arbitrarily named
- files. Files implementing models often have ``model`` in their filenames
- or they may live in a Python subpackage of your application package named
- ``models`` (as we've done in this tutorial), but this is only by convention.
+ modules. Modules implementing models often have ``model`` in their
+ names or they may live in a Python subpackage of your application package
+ named ``models`` (as we've done in this tutorial), but this is only a
+ convention and not a requirement.
-Open the ``tutorial/tutorial/models/mymodel.py`` file and edit it to look like
+Open the ``tutorial/models/mymodel.py`` file and edit it to look like
the following:
.. literalinclude:: src/models/tutorial/models/mymodel.py
@@ -59,7 +60,7 @@ Edit ``models/__init__.py``
Since we are using a package for our models, we also need to update our
``__init__.py`` file.
-Open the ``tutorial/tutorial/models/__init__.py`` file and edit it to look like
+Open the ``tutorial/models/__init__.py`` file and edit it to look like
the following:
.. literalinclude:: src/models/tutorial/models/__init__.py
@@ -84,7 +85,7 @@ Since we've changed our model, we need to make changes to our
to create a ``Page`` rather than a ``MyModel`` and add it to our
``DBSession``.
-Open ``tutorial/tutorial/scripts/initializedb.py`` and edit it to look like
+Open ``tutorial/scripts/initializedb.py`` and edit it to look like
the following:
.. literalinclude:: src/models/tutorial/scripts/initializedb.py