Skip to content
This repository

django debug toolbar awesomeness #46

Open
willkg opened this Issue July 12, 2012 · 2 comments

2 participants

Will Kahn-Greene Rob Hudson
Will Kahn-Greene
Collaborator
willkg commented July 12, 2012

Rob threw this together:

robhudson@3eae871

It'd be super to get that to a stable state (for whatever that means) and then toss it in contrib.django.

Rob Hudson
Collaborator

Updated commit here:
robhudson@37d2a1c

This is a patch against current master, and with the beginnings of some javascript to expand/collapse the JSON on click, but I didn't get it working yet.

Rob Hudson
Collaborator

By the way... if you don't mind playing with this, let me know what else it needs.

Put something like this in your settings:

DEBUG_TOOLBAR_PANELS = (
    'debug_toolbar.panels.version.VersionDebugPanel',
    'debug_toolbar.panels.timer.TimerDebugPanel',
    'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
    'debug_toolbar.panels.headers.HeaderDebugPanel',
    'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
    'debug_toolbar.panels.sql.SQLDebugPanel',
    #'debug_toolbar.panels.template.TemplateDebugPanel',
    'debug_toolbar.panels.signals.SignalDebugPanel',
    'debug_toolbar.panels.logger.LoggingPanel',
    'elasticutils.contrib.django.panels.ElasticutilsDebugPanel',
)

That last part is the important bit.

I for one would simply like an on-click of the JSON to expand it as pretty-printed JSON. It might be nice also to wire up a call to both re-run the query and look at the raw results, and re-run the query with an explain (or whatever it's called?) to see the details of the scoring, etc. But I think each of these could be incremental improvements once the basics are landed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.