diff options
| author | Steve Piercy <web@stevepiercy.com> | 2018-10-08 02:28:12 -0700 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2018-10-08 02:28:12 -0700 |
| commit | 2cf5a0f5a5236ba63f815bde04e6871f12e34a0a (patch) | |
| tree | 088219481bff854a19907472ea82a6eb8360263b /docs/quick_tutorial/view_classes.rst | |
| parent | b9145548646e378da8ce97f60bca16ab1e7d7bf3 (diff) | |
| download | pyramid-2cf5a0f5a5236ba63f815bde04e6871f12e34a0a.tar.gz pyramid-2cf5a0f5a5236ba63f815bde04e6871f12e34a0a.tar.bz2 pyramid-2cf5a0f5a5236ba63f815bde04e6871f12e34a0a.zip | |
Reformat numbered list.
Diffstat (limited to 'docs/quick_tutorial/view_classes.rst')
| -rw-r--r-- | docs/quick_tutorial/view_classes.rst | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/docs/quick_tutorial/view_classes.rst b/docs/quick_tutorial/view_classes.rst index 4b7b78140..1307857b7 100644 --- a/docs/quick_tutorial/view_classes.rst +++ b/docs/quick_tutorial/view_classes.rst @@ -37,41 +37,38 @@ Objectives Steps ===== -#. First we copy the results of the previous step: +#. First we copy the results of the previous step: - .. code-block:: bash + .. code-block:: bash - cd ..; cp -r templating view_classes; cd view_classes - $VENV/bin/pip install -e . + cd ..; cp -r templating view_classes; cd view_classes + $VENV/bin/pip install -e . -#. Our ``view_classes/tutorial/views.py`` now has a view class with our two - views: +#. Our ``view_classes/tutorial/views.py`` now has a view class with our two views: - .. literalinclude:: view_classes/tutorial/views.py - :linenos: + .. literalinclude:: view_classes/tutorial/views.py + :linenos: -#. Our unit tests in ``view_classes/tutorial/tests.py`` don't run, so let's - modify them to import the view class, and make an instance before getting a - response: +#. Our unit tests in ``view_classes/tutorial/tests.py`` don't run, so let's modify them to import the view class, and make an instance before getting a response: - .. literalinclude:: view_classes/tutorial/tests.py - :linenos: + .. literalinclude:: view_classes/tutorial/tests.py + :linenos: -#. Now run the tests: +#. Now run the tests: - .. code-block:: bash + .. code-block:: bash - $VENV/bin/pytest tutorial/tests.py -q - .... - 4 passed in 0.34 seconds + $VENV/bin/pytest tutorial/tests.py -q + .... + 4 passed in 0.34 seconds -#. Run your Pyramid application with: +#. Run your Pyramid application with: - .. code-block:: bash + .. code-block:: bash - $VENV/bin/pserve development.ini --reload + $VENV/bin/pserve development.ini --reload -#. Open http://localhost:6543/ and http://localhost:6543/howdy in your browser. +#. Open http://localhost:6543/ and http://localhost:6543/howdy in your browser. Analysis |
