diff options
| author | Steve Piercy <web@stevepiercy.com> | 2016-12-25 02:29:14 -0800 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2016-12-25 02:29:14 -0800 |
| commit | af1e3221489954cd3001e81e4b94516a820c2f72 (patch) | |
| tree | 21e4dd50e8cfce7073470a53649748102e7682a6 /docs | |
| parent | 7857763be80aad2e60b95bfed73c641194fb380c (diff) | |
| download | pyramid-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')
| -rw-r--r-- | docs/quick_tour.rst | 21 |
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 |
