diff options
| author | Audrey Roy <audreyr@gmail.com> | 2012-03-12 17:02:46 -0700 |
|---|---|---|
| committer | Audrey Roy <audreyr@gmail.com> | 2012-03-12 17:02:46 -0700 |
| commit | 197808638a50dc085efc7511e24c043274e35663 (patch) | |
| tree | 775a9fe0e65a9b23f6e23fa68e449a5c63f4a4cd /docs/tutorials | |
| parent | c8825fb047941fb7567fdf147e957acf81b6426b (diff) | |
| download | pyramid-197808638a50dc085efc7511e24c043274e35663.tar.gz pyramid-197808638a50dc085efc7511e24c043274e35663.tar.bz2 pyramid-197808638a50dc085efc7511e24c043274e35663.zip | |
Clarified which files to open/edit. Highlighted the lines to be edited in models.py.
Diffstat (limited to 'docs/tutorials')
| -rw-r--r-- | docs/tutorials/wiki2/basiclayout.rst | 6 | ||||
| -rw-r--r-- | docs/tutorials/wiki2/definingmodels.rst | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/docs/tutorials/wiki2/basiclayout.rst b/docs/tutorials/wiki2/basiclayout.rst index 29e272081..888ae0bf3 100644 --- a/docs/tutorials/wiki2/basiclayout.rst +++ b/docs/tutorials/wiki2/basiclayout.rst @@ -16,8 +16,10 @@ Application Configuration with ``__init__.py`` A directory on disk can be turned into a Python :term:`package` by containing an ``__init__.py`` file. Even if empty, this marks a directory as a Python package. We use ``__init__.py`` both as a marker indicating the directory -it's contained within is a package, and to contain configuration code. Our -``__init__.py`` file will look like this: +it's contained within is a package, and to contain configuration code. + +Open the ``tutorial/tutorial/__init__.py`` file. It should already contain +the following: .. literalinclude:: src/basiclayout/tutorial/__init__.py :linenos: diff --git a/docs/tutorials/wiki2/definingmodels.rst b/docs/tutorials/wiki2/definingmodels.rst index 66106ffee..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 |
