summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/definingmodels.rst
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2013-01-05 01:40:32 +0200
committerTshepang Lekhonkhobe <tshepang@gmail.com>2013-01-05 01:40:32 +0200
commitaf1a96331c8de1e4ccc7eebba6f21974d21ebed6 (patch)
tree82f9f95a7fbd8925c1b1415f5c97455dc95a4611 /docs/tutorials/wiki2/definingmodels.rst
parent2b164460337dd655f9aebb25a10e6f0f35363656 (diff)
downloadpyramid-af1a96331c8de1e4ccc7eebba6f21974d21ebed6.tar.gz
pyramid-af1a96331c8de1e4ccc7eebba6f21974d21ebed6.tar.bz2
pyramid-af1a96331c8de1e4ccc7eebba6f21974d21ebed6.zip
Reduce duplicated content in wiki2 tutorial
Diffstat (limited to 'docs/tutorials/wiki2/definingmodels.rst')
-rw-r--r--docs/tutorials/wiki2/definingmodels.rst22
1 files changed, 6 insertions, 16 deletions
diff --git a/docs/tutorials/wiki2/definingmodels.rst b/docs/tutorials/wiki2/definingmodels.rst
index 2148582f1..cfa80aa42 100644
--- a/docs/tutorials/wiki2/definingmodels.rst
+++ b/docs/tutorials/wiki2/definingmodels.rst
@@ -77,25 +77,15 @@ following:
(Only the highlighted lines need to be changed.)
-Reinitializing the Database
----------------------------
+Installing the Project and re-initializing the Database
+-------------------------------------------------------
+
+Redo the steps in :ref:`installing_project_in_dev_mode`.
Because our model has changed, in order to reinitialize the database, we need
to rerun the ``initialize_tutorial_db`` command to pick up the changes you've made
-to both the models.py file and to the initializedb.py file. From the root of the
-``tutorial`` project, directory execute the following commands.
-
-On UNIX:
-
-.. code-block:: text
-
- $ ../bin/initialize_tutorial_db development.ini
-
-On Windows:
-
-.. code-block:: text
-
- c:\pyramidtut\tutorial> ..\Scripts\initialize_tutorial_db development.ini
+to both the models.py file and to the initializedb.py file.
+See :ref:`initialize_db_wiki2` for instructions.
Success will look something like this::