We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0f8e1e commit 02c872aCopy full SHA for 02c872a
debug_toolbar/apps.py
@@ -14,6 +14,13 @@ class DebugToolbarConfig(AppConfig):
14
name = "debug_toolbar"
15
verbose_name = _("Debug Toolbar")
16
17
+ def ready(self):
18
+ from debug_toolbar.toolbar import DebugToolbar
19
+
20
+ # Import the panels when the app is ready. This allows panels
21
+ # like CachePanel to enable the instrumentation immediately.
22
+ DebugToolbar.get_panel_classes()
23
24
25
@register
26
def check_middleware(app_configs, **kwargs):
0 commit comments