Ejemplo n.º 1
0
    def ready(self):
        from debug_toolbar.toolbar import DebugToolbar

        # Import the panels when the app is ready and call their ready() methods.  This
        # allows panels like CachePanel to enable their instrumentation immediately.
        for cls in DebugToolbar.get_panel_classes():
            cls.ready()
Ejemplo n.º 2
0
def check_panel_configs(app_configs, **kwargs):
    """Allow each panel to check the toolbar's integration for their its own purposes."""
    from debug_toolbar.toolbar import DebugToolbar

    errors = []
    for panel_class in DebugToolbar.get_panel_classes():
        for check_message in panel_class.run_checks():
            errors.append(check_message)
    return errors
Ejemplo n.º 3
0
    def ready(self):
        from debug_toolbar.toolbar import DebugToolbar

        # Import the panels when the app is ready. This allows panels
        # like CachePanel to enable the instrumentation immediately.
        DebugToolbar.get_panel_classes()