summaryrefslogtreecommitdiff
path: root/docs/quick_tour.rst
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2016-12-25 02:29:14 -0800
committerSteve Piercy <web@stevepiercy.com>2016-12-25 02:29:14 -0800
commitaf1e3221489954cd3001e81e4b94516a820c2f72 (patch)
tree21e4dd50e8cfce7073470a53649748102e7682a6 /docs/quick_tour.rst
parent7857763be80aad2e60b95bfed73c641194fb380c (diff)
downloadpyramid-af1e3221489954cd3001e81e4b94516a820c2f72.tar.gz
pyramid-af1e3221489954cd3001e81e4b94516a820c2f72.tar.bz2
pyramid-af1e3221489954cd3001e81e4b94516a820c2f72.zip
quick_tour - "Easier development with ``debugtoolbar``" updates for cookiecutter
- adjust line numbers, grammar, pip command
Diffstat (limited to 'docs/quick_tour.rst')
-rw-r--r--docs/quick_tour.rst21
1 files changed, 9 insertions, 12 deletions
diff --git a/docs/quick_tour.rst b/docs/quick_tour.rst
index ab25f68dc..a02d2ab27 100644
--- a/docs/quick_tour.rst
+++ b/docs/quick_tour.rst
@@ -634,38 +634,35 @@ and earlier we showed ``--reload`` for application reloading.
available in your browser. Adding it to your project illustrates several points
about configuration.
-The scaffold ``pyramid_jinja2_starter`` is already configured to include the
+The cookiecutter ``pyramid-cookiecutter-starter`` already configured our package to include the
add-on ``pyramid_debugtoolbar`` in its ``setup.py``:
.. literalinclude:: quick_tour/package/setup.py
:language: python
- :linenos:
- :lineno-start: 11
+ :lineno-match:
:lines: 11-16
+ :emphasize-lines: 4
It was installed when you previously ran:
.. code-block:: bash
- $ $VENV/bin/pip install -e .
+ $ $VENV/bin/pip install -e ".[testing]"
The ``pyramid_debugtoolbar`` package is a Pyramid add-on, which means we need
-to include its configuration into our web application. The ``pyramid_jinja2``
-add-on already took care of this for us in its ``__init__.py``:
+to include its configuration into our web application. The cookiecutter already took care of this for us in its ``__init__.py``:
.. literalinclude:: quick_tour/package/hello_world/__init__.py
:language: python
- :linenos:
- :lineno-start: 16
- :lines: 19
+ :lineno-match:
+ :lines: 8
And it uses the ``pyramid.includes`` facility in our ``development.ini``:
.. literalinclude:: quick_tour/package/development.ini
:language: ini
- :linenos:
- :lineno-start: 15
- :lines: 15-16
+ :lineno-match:
+ :lines: 14-15
You'll now see a Pyramid logo on the right side of your browser window, which
when clicked opens a new window that provides introspective access to debugging