summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2013-01-11 22:07:26 -0800
committerChris McDonough <chrism@plope.com>2013-01-11 22:07:26 -0800
commite4e08cd39bcb7f33893ee0c7e622cbc5493c3c64 (patch)
tree8f4006c34bb16cff09ab30c1e6e0d11b3621bec1 /docs/tutorials/wiki2
parent102a2413a73e715cadc86ad3e9f22565cb6d24d8 (diff)
parentaf1a96331c8de1e4ccc7eebba6f21974d21ebed6 (diff)
downloadpyramid-e4e08cd39bcb7f33893ee0c7e622cbc5493c3c64.tar.gz
pyramid-e4e08cd39bcb7f33893ee0c7e622cbc5493c3c64.tar.bz2
pyramid-e4e08cd39bcb7f33893ee0c7e622cbc5493c3c64.zip
Merge pull request #768 from tshepang/dupes
Reduce duplicated content in wiki2 tutorial
Diffstat (limited to 'docs/tutorials/wiki2')
-rw-r--r--docs/tutorials/wiki2/definingmodels.rst22
-rw-r--r--docs/tutorials/wiki2/installation.rst6
2 files changed, 12 insertions, 16 deletions
diff --git a/docs/tutorials/wiki2/definingmodels.rst b/docs/tutorials/wiki2/definingmodels.rst
index d42ed0814..dca6238dd 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::
diff --git a/docs/tutorials/wiki2/installation.rst b/docs/tutorials/wiki2/installation.rst
index 1e47e18c3..9fa01d513 100644
--- a/docs/tutorials/wiki2/installation.rst
+++ b/docs/tutorials/wiki2/installation.rst
@@ -66,6 +66,9 @@ On Windows:
startup problems, try putting both the virtualenv and the project
into directories that do not contain spaces in their paths.
+
+.. _installing_project_in_dev_mode:
+
Installing the Project in "Development Mode"
============================================
@@ -181,6 +184,9 @@ If successful, you will see output something like this::
Looks like our package doesn't quite have 100% test coverage.
+
+.. _initialize_db_wiki2:
+
Initializing the Database
=========================