diff options
| author | Chris McDonough <chrism@plope.com> | 2012-02-14 06:59:28 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2012-02-14 06:59:28 -0500 |
| commit | 9bdb099a5f5cb9f70c1bc60c2e2f58d6bc6f5c28 (patch) | |
| tree | 940cd84b84fef03e0d6916baebe3bf78cd7b057d /docs/narr | |
| parent | c6a299ad7159ffcabe201fa79f485c388d837971 (diff) | |
| download | pyramid-9bdb099a5f5cb9f70c1bc60c2e2f58d6bc6f5c28.tar.gz pyramid-9bdb099a5f5cb9f70c1bc60c2e2f58d6bc6f5c28.tar.bz2 pyramid-9bdb099a5f5cb9f70c1bc60c2e2f58d6bc6f5c28.zip | |
add note about debugtoolbar.hosts
Diffstat (limited to 'docs/narr')
| -rw-r--r-- | docs/narr/project.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/narr/project.rst b/docs/narr/project.rst index d69f0cf13..66643af73 100644 --- a/docs/narr/project.rst +++ b/docs/narr/project.rst @@ -322,6 +322,22 @@ image again. .. image:: project-debug.png +If you don't see the debug toolbar image on the right hand top of the page, +it means you're browsing from a system that does not have debugging access. +By default, for security reasons, only a browser originating from +``localhost`` (``127.0.0.1``) can see the debug toolbar. To allow your +browser on a remote system to access the server, add the a line within the +``[app:main]`` section of the ``development.ini`` file in the form +``debugtoolbar.hosts = X.X.X.X``. For example, if your Pyramid application +is running on a remote system, and you're browsing from a host with the IP +address ``192.168.1.1``, you'd add something like this to enable the toolbar +when your system contacts Pyramid: + +.. code-block:: ini + + [app:main] + debugtoolbar.hosts = 192.168.1.1 + For more information about what the debug toolbar allows you to do, see `the documentation for pyramid_debugtoolbar <http://docs.pylonsproject.org/projects/pyramid_debugtoolbar/dev/>`_. |
