Skip to content

Commit 4a22745

Browse files
committed
Fix settings docs
* Remove comment in ``debug_toolbar/settings.py`` that was invalidated in a8fa2cf. * Fix documented default for ``DISABLE_PANELS``.
1 parent fe0db68 commit 4a22745

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

debug_toolbar/settings.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
from django.conf import settings
44

5-
# Always import this module as follows:
6-
# from debug_toolbar import settings [as dt_settings]
7-
8-
# Don't import directly CONFIG or PANELs, or you will miss changes performed
9-
# with override_settings in tests.
10-
115

126
CONFIG_DEFAULTS = {
137
# Toolbar options

docs/configuration.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,14 @@ Toolbar options
5454

5555
* ``DISABLE_PANELS``
5656

57-
Default: ``{'debug_toolbar.panels.redirects.RedirectsPanel'}``
57+
Default:
58+
59+
.. code-block:: python
60+
61+
{
62+
"debug_toolbar.panels.profiling.ProfilingPanel",
63+
"debug_toolbar.panels.redirects.RedirectsPanel",
64+
}
5865
5966
This setting is a set of the full Python paths to each panel that you
6067
want disabled (but still displayed) by default.

0 commit comments

Comments
 (0)