summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial/json.rst
diff options
context:
space:
mode:
authorMichael Merickel <github@m.merickel.org>2018-08-21 01:44:55 -0500
committerGitHub <noreply@github.com>2018-08-21 01:44:55 -0500
commit820a752645b460ea8009b07a75c752ab09c53dec (patch)
tree14616d81a7abedfe523c057e71ed7b2aca680754 /docs/quick_tutorial/json.rst
parentdf8598a2658632f709a64e8076cce02ca49de8e6 (diff)
parent254710cb716dccfe536b20d077e3cb79be19c6b3 (diff)
downloadpyramid-820a752645b460ea8009b07a75c752ab09c53dec.tar.gz
pyramid-820a752645b460ea8009b07a75c752ab09c53dec.tar.bz2
pyramid-820a752645b460ea8009b07a75c752ab09c53dec.zip
Merge pull request #3330 from stevepiercy/docs-code-style
Docs code style
Diffstat (limited to 'docs/quick_tutorial/json.rst')
-rw-r--r--docs/quick_tutorial/json.rst16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/quick_tutorial/json.rst b/docs/quick_tutorial/json.rst
index ff153d2b5..98283424c 100644
--- a/docs/quick_tutorial/json.rst
+++ b/docs/quick_tutorial/json.rst
@@ -31,32 +31,32 @@ Steps
.. code-block:: bash
- $ cd ..; cp -r view_classes json; cd json
- $ $VENV/bin/pip install -e .
+ cd ..; cp -r view_classes json; cd json
+ $VENV/bin/pip install -e .
#. We add a new route for ``hello_json`` in ``json/tutorial/__init__.py``:
.. literalinclude:: json/tutorial/__init__.py
- :linenos:
+ :linenos:
#. Rather than implement a new view, we will "stack" another decorator on the
``hello`` view in ``views.py``:
.. literalinclude:: json/tutorial/views.py
- :linenos:
+ :linenos:
#. We need a new functional test at the end of ``json/tutorial/tests.py``:
.. literalinclude:: json/tutorial/tests.py
- :linenos:
+ :linenos:
#. Run the tests:
.. code-block:: bash
- $ $VENV/bin/py.test tutorial/tests.py -q
- .....
- 5 passed in 0.47 seconds
+ $VENV/bin/py.test tutorial/tests.py -q
+ .....
+ 5 passed in 0.47 seconds
#. Run your Pyramid application with: