Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

django debug toolbar awesomeness #46

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

Comments

Projects
None yet
2 participants
Member

willkg commented Jul 12, 2012

Rob threw this together:

robhudson/elasticutils@3eae871

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

Member

robhudson commented Aug 31, 2012

Updated commit here:
robhudson/elasticutils@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.

Member

robhudson commented Aug 31, 2012

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.

@willkg willkg added this to the 0.10 milestone Mar 1, 2014

@willkg willkg removed this from the 0.10 milestone May 29, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment