diff options
| author | Michael Merickel <michael@merickel.org> | 2012-03-12 22:23:07 -0700 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2012-03-12 22:23:07 -0700 |
| commit | b262016e29d6b271836fc09145e65227e9fc3d92 (patch) | |
| tree | 7d81cb522f96ad1934af9a4211802f22fef1172b /docs | |
| parent | f9f8c67e10c886119c7b2f06d329b04ee27d4144 (diff) | |
| parent | 94190dfc00512eb1cb5bf10fe1b4f8d1ed5b83a3 (diff) | |
| download | pyramid-b262016e29d6b271836fc09145e65227e9fc3d92.tar.gz pyramid-b262016e29d6b271836fc09145e65227e9fc3d92.tar.bz2 pyramid-b262016e29d6b271836fc09145e65227e9fc3d92.zip | |
Merge pull request #475 from audreyr/master
Highlighting another line that the user should edit in the tutorial
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/tutorials/wiki2/definingmodels.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/tutorials/wiki2/definingmodels.rst b/docs/tutorials/wiki2/definingmodels.rst index ca0493f32..0810ad1c5 100644 --- a/docs/tutorials/wiki2/definingmodels.rst +++ b/docs/tutorials/wiki2/definingmodels.rst @@ -67,12 +67,15 @@ script. In particular, we'll replace our import of ``MyModel`` with one of ``Page`` and we'll change the very end of the script to create a ``Page`` rather than a ``MyModel`` and add it to our ``DBSession``. -The result of all of our edits to ``populate.py`` will end up looking -something like this: +Open ``tutorial/tutorial/scripts/populate.py`` and edit it to look like the +following: .. literalinclude:: src/models/tutorial/scripts/populate.py :linenos: :language: python + :emphasize-lines: 14,34 + +(Only the highlighted lines need to be changed.) Repopulating the Database ------------------------- |
