summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial/debugtoolbar.rst
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2018-08-18 12:12:36 -0700
committerSteve Piercy <web@stevepiercy.com>2018-08-18 12:12:36 -0700
commit1ee470e3095f45522125a8074ffda7cf54dceaca (patch)
tree581df1c612fdbe89ad24bcfacbbec242eec67e6d /docs/quick_tutorial/debugtoolbar.rst
parent9be675e895dced0d0c56a27c3144bedfdad45721 (diff)
downloadpyramid-1ee470e3095f45522125a8074ffda7cf54dceaca.tar.gz
pyramid-1ee470e3095f45522125a8074ffda7cf54dceaca.tar.bz2
pyramid-1ee470e3095f45522125a8074ffda7cf54dceaca.zip
Clean up code-blocks in qt/debugtoolbar
Diffstat (limited to 'docs/quick_tutorial/debugtoolbar.rst')
-rw-r--r--docs/quick_tutorial/debugtoolbar.rst20
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/quick_tutorial/debugtoolbar.rst b/docs/quick_tutorial/debugtoolbar.rst
index 4402fcdbd..b49dd1f97 100644
--- a/docs/quick_tutorial/debugtoolbar.rst
+++ b/docs/quick_tutorial/debugtoolbar.rst
@@ -37,22 +37,22 @@ Steps
.. code-block:: bash
- $ cd ..; cp -r ini debugtoolbar; cd debugtoolbar
- $ $VENV/bin/pip install -e .
- $ $VENV/bin/pip install pyramid_debugtoolbar
+ cd ..; cp -r ini debugtoolbar; cd debugtoolbar
+ $VENV/bin/pip install -e .
+ $VENV/bin/pip install pyramid_debugtoolbar
#. Our ``debugtoolbar/development.ini`` gets a configuration entry for
``pyramid.includes``:
.. literalinclude:: debugtoolbar/development.ini
- :language: ini
- :linenos:
+ :language: ini
+ :linenos:
#. Run the WSGI application with:
.. code-block:: bash
- $ $VENV/bin/pserve development.ini --reload
+ $VENV/bin/pserve development.ini --reload
#. Open http://localhost:6543/ in your browser. See the handy
toolbar on the right.
@@ -100,15 +100,15 @@ Extra credit
.. code-block:: python
- def hello_world(request):
- return Response('<body><h1>Hello World!</h1></body>')
+ def hello_world(request):
+ return Response('<body><h1>Hello World!</h1></body>')
to:
.. code-block:: python
- def hello_world(request):
- return xResponse('<body><h1>Hello World!</h1></body>')
+ def hello_world(request):
+ return xResponse('<body><h1>Hello World!</h1></body>')
Save, and visit http://localhost:6543/ again. Notice the nice traceback
display. On the lowest line, click the "screen" icon to the right, and try