summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2018-08-18 12:22:02 -0700
committerSteve Piercy <web@stevepiercy.com>2018-08-18 12:22:02 -0700
commit47524e35e1ebd86a1c5ca4b92a822472a6446109 (patch)
treea8544a24adc600a9a179640bc9a4177e5ce20ff2 /docs/quick_tutorial
parent7574fb1d91a3bd5567fc74beb5cb7ec5f617d08f (diff)
downloadpyramid-47524e35e1ebd86a1c5ca4b92a822472a6446109.tar.gz
pyramid-47524e35e1ebd86a1c5ca4b92a822472a6446109.tar.bz2
pyramid-47524e35e1ebd86a1c5ca4b92a822472a6446109.zip
Clean up code-blocks in qt/request_response
Diffstat (limited to 'docs/quick_tutorial')
-rw-r--r--docs/quick_tutorial/request_response.rst20
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/quick_tutorial/request_response.rst b/docs/quick_tutorial/request_response.rst
index ece8cdd6f..098753820 100644
--- a/docs/quick_tutorial/request_response.rst
+++ b/docs/quick_tutorial/request_response.rst
@@ -39,37 +39,37 @@ Steps
.. code-block:: bash
- $ cd ..; cp -r view_classes request_response; cd request_response
- $ $VENV/bin/pip install -e .
+ cd ..; cp -r view_classes request_response; cd request_response
+ $VENV/bin/pip install -e .
#. Simplify the routes in ``request_response/tutorial/__init__.py``:
.. literalinclude:: request_response/tutorial/__init__.py
- :linenos:
+ :linenos:
#. We only need one view in ``request_response/tutorial/views.py``:
.. literalinclude:: request_response/tutorial/views.py
- :linenos:
+ :linenos:
#. Update the tests in ``request_response/tutorial/tests.py``:
.. literalinclude:: request_response/tutorial/tests.py
- :linenos:
+ :linenos:
#. Now run the tests:
.. code-block:: bash
- $ $VENV/bin/py.test tutorial/tests.py -q
- .....
- 5 passed in 0.30 seconds
+ $VENV/bin/py.test tutorial/tests.py -q
+ .....
+ 5 passed in 0.30 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/ in your browser. You will be redirected to
http://localhost:6543/plain.
@@ -91,7 +91,7 @@ the body of the response:
.. code-block:: text
- URL http://localhost:6543/plain?name=alice with name: alice
+ URL http://localhost:6543/plain?name=alice with name: alice
Finally, we set the response's content type and body, then return the response.