File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,8 @@ settings module as follows::
82
82
after any other middleware that encodes the response's content, such as
83
83
:class: `~django.middleware.gzip.GZipMiddleware `.
84
84
85
+ .. _internal-ips :
86
+
85
87
Configuring Internal IPs
86
88
------------------------
87
89
Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ The toolbar isn't displayed!
5
5
----------------------------
6
6
7
7
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.
11
13
12
14
Be aware of middleware ordering and other middleware that may intercept
13
15
requests and return responses. Putting the debug toolbar middleware *after *
You can’t perform that action at this time.
0 commit comments