Skip to content

Commit 250d3fe

Browse files
Fix settings docs (#1534)
* Fix settings docs * Remove comment in ``debug_toolbar/settings.py`` that was invalidated in a8fa2cf. * Fix documented default for ``DISABLE_PANELS``. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent fe0db68 commit 250d3fe

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

debug_toolbar/settings.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +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-
11-
125
CONFIG_DEFAULTS = {
136
# Toolbar options
147
"DISABLE_PANELS": {

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)