diff options
| author | Steve Piercy <web@stevepiercy.com> | 2018-08-18 12:28:07 -0700 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2018-08-18 12:28:07 -0700 |
| commit | 5caadd304237a66961bddc7d7c641b1407fea6bf (patch) | |
| tree | 409c3f9fec84ceeeb978170eee2075577dbffd43 /docs/quick_tutorial | |
| parent | 3656b402272e980895756ed115417027cbe30fcd (diff) | |
| download | pyramid-5caadd304237a66961bddc7d7c641b1407fea6bf.tar.gz pyramid-5caadd304237a66961bddc7d7c641b1407fea6bf.tar.bz2 pyramid-5caadd304237a66961bddc7d7c641b1407fea6bf.zip | |
Clean up code-blocks in qt/views
Diffstat (limited to 'docs/quick_tutorial')
| -rw-r--r-- | docs/quick_tutorial/views.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/quick_tutorial/views.rst b/docs/quick_tutorial/views.rst index edbe4b2ff..f7fa64719 100644 --- a/docs/quick_tutorial/views.rst +++ b/docs/quick_tutorial/views.rst @@ -44,39 +44,39 @@ Steps .. code-block:: bash - $ cd ..; cp -r functional_testing views; cd views - $ $VENV/bin/pip install -e . + cd ..; cp -r functional_testing views; cd views + $VENV/bin/pip install -e . #. Our ``views/tutorial/__init__.py`` gets a lot shorter: .. literalinclude:: views/tutorial/__init__.py - :linenos: + :linenos: #. Let's add a module ``views/tutorial/views.py`` that is focused on handling requests and responses: .. literalinclude:: views/tutorial/views.py - :linenos: + :linenos: #. Update the tests to cover the two new views: .. literalinclude:: views/tutorial/tests.py - :linenos: + :linenos: #. Now run the tests: .. code-block:: bash - $ $VENV/bin/py.test tutorial/tests.py -q - .... - 4 passed in 0.28 seconds + $VENV/bin/py.test tutorial/tests.py -q + .... + 4 passed in 0.28 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. |
