Skip to content

Commit 0c00152

Browse files
committed
Add info about IP address reqs to tips
This documents the need for IP addresses to match the INTERNAL_IPS setting to the 'tips' page (linking back to source material elsewhere in the docs).
1 parent b650a33 commit 0c00152

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/installation.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ settings module as follows::
8282
after any other middleware that encodes the response's content, such as
8383
:class:`~django.middleware.gzip.GZipMiddleware`.
8484

85+
.. _internal-ips:
86+
8587
Configuring Internal IPs
8688
------------------------
8789

docs/tips.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ The toolbar isn't displayed!
55
----------------------------
66

77
The Debug Toolbar will only display when ``DEBUG = True`` in your project's
8-
settings. It will also only display if the mimetype of the response is
9-
either ``text/html`` or ``application/xhtml+xml`` and contains a closing
10-
``</body>`` tag.
8+
settings (see :ref:`Show Toolbar Callback <SHOW_TOOLBAR_CALLBACK>`) and your
9+
IP address must also match an entry in your project's ``INTERNAL_IPS`` setting
10+
(see :ref:`internal-ips`). It will also only display if the mimetype of the
11+
response is either ``text/html`` or ``application/xhtml+xml`` and contains a
12+
closing ``</body>`` tag.
1113

1214
Be aware of middleware ordering and other middleware that may intercept
1315
requests and return responses. Putting the debug toolbar middleware *after*

0 commit comments

Comments
 (0)