diff --git a/debug_toolbar/settings.py b/debug_toolbar/settings.py index d8e6868a3..d512e11ae 100644 --- a/debug_toolbar/settings.py +++ b/debug_toolbar/settings.py @@ -2,13 +2,6 @@ from django.conf import settings -# Always import this module as follows: -# from debug_toolbar import settings [as dt_settings] - -# Don't import directly CONFIG or PANELs, or you will miss changes performed -# with override_settings in tests. - - CONFIG_DEFAULTS = { # Toolbar options "DISABLE_PANELS": { diff --git a/docs/configuration.rst b/docs/configuration.rst index 7219c8167..084480dde 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -54,7 +54,14 @@ Toolbar options * ``DISABLE_PANELS`` - Default: ``{'debug_toolbar.panels.redirects.RedirectsPanel'}`` + Default: + + .. code-block:: python + + { + "debug_toolbar.panels.profiling.ProfilingPanel", + "debug_toolbar.panels.redirects.RedirectsPanel", + } This setting is a set of the full Python paths to each panel that you want disabled (but still displayed) by default.