diff options
| author | Steve Piercy <web@stevepiercy.com> | 2018-08-18 12:27:37 -0700 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2018-08-18 12:27:37 -0700 |
| commit | 3656b402272e980895756ed115417027cbe30fcd (patch) | |
| tree | af6386a16e97985a989355b3bdc280ebae71b52c | |
| parent | 1dc04afa73e6171052b42087f769f4d336184a65 (diff) | |
| download | pyramid-3656b402272e980895756ed115417027cbe30fcd.tar.gz pyramid-3656b402272e980895756ed115417027cbe30fcd.tar.bz2 pyramid-3656b402272e980895756ed115417027cbe30fcd.zip | |
Clean up code-blocks in qt/view_classes
| -rw-r--r-- | docs/quick_tutorial/view_classes.rst | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/docs/quick_tutorial/view_classes.rst b/docs/quick_tutorial/view_classes.rst index 49cdcddcc..fc7ba5125 100644 --- a/docs/quick_tutorial/view_classes.rst +++ b/docs/quick_tutorial/view_classes.rst @@ -41,36 +41,35 @@ Steps .. 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: .. literalinclude:: view_classes/tutorial/views.py - :linenos: + :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: .. literalinclude:: view_classes/tutorial/tests.py - :linenos: + :linenos: #. Now run the tests: .. code-block:: bash - - $ $VENV/bin/py.test tutorial/tests.py -q - .... - 4 passed in 0.34 seconds + $VENV/bin/py.test tutorial/tests.py -q + .... + 4 passed in 0.34 seconds #. Run your Pyramid application with: .. 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. |
