diff options
| author | Chris McDonough <chrism@plope.com> | 2011-08-09 14:21:55 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-08-09 14:21:55 -0400 |
| commit | 06247f77d3a7f6757c6082badb00154b6f626922 (patch) | |
| tree | fb75ba0bd9c2c9cecd9ca1302ffb187b1b152f03 /docs | |
| parent | c6d9f191e920536fdb274d15ef956a5e8151bbc2 (diff) | |
| download | pyramid-06247f77d3a7f6757c6082badb00154b6f626922.tar.gz pyramid-06247f77d3a7f6757c6082badb00154b6f626922.tar.bz2 pyramid-06247f77d3a7f6757c6082badb00154b6f626922.zip | |
instructions about how to turn the toolbar off
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/project.rst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/narr/project.rst b/docs/narr/project.rst index b4a0e1d45..baf4c86fa 100644 --- a/docs/narr/project.rst +++ b/docs/narr/project.rst @@ -326,6 +326,28 @@ The debug toolbar will not be shown (and all debugging will be turned off) when you use the ``production.ini`` file instead of the ``development.ini`` ini file to run the application. +You can also turn the debug toolbar off by editing ``development.ini`` and +commenting out the line ``pyramid.include = pyramid_debugtoolbar``. For +example, instead of: + +.. code-block:: ini + :linenos: + + [app:MyApp] + ... + pyramid.include = pyramid_debugtoolbar + +Put a hash mark in front of the ``pyramid.include`` line: + +.. code-block:: ini + :linenos: + + [app:MyApp] + ... + #pyramid.include = pyramid_debugtoolbar + +Then restart the application to see that the toolbar has been turned off. + .. sidebar:: Using an Alternate WSGI Server The code generated by a :app:`Pyramid` scaffold assumes that you |
