News for hackers. Stuff that matters.
Re:Django Query Inspector by aweb on Thursday June 12, 2014 @09:35AM (#7883250)
This is a nice tool, although I really like the Django Debug Toolbar, which does that and a bit more: https://github.com/django-debug-toolbar/django-debug-toolbar
Re:Django Query Inspector by andrewsomething on Thursday June 12, 2014 @06:08PM (#7886289)
I'm also fan of Django Debug Toolbar, enough so that I adopted the package in Debian. Unfortunately, there isn't an active upstream maintainer right now. As the README file says:

"There's no active maintainer at this time. You're welcome to file issues and pull requests but you may receive no answer until a new maintainer steps up."

Re:Django Query Inspector by nwenzel on Thursday June 12, 2014 @09:49AM (#7883341)
I think some of the aggregation of query counts here would be helpful. I'm also a django debug tool bar user. I typically scan the SQL and can visually identify the repeats. My wish there would be aggregating the counts, sum'ing time, and sorting by time rather than execution order.
Re:Django Query Inspector by epicserver on Thursday June 12, 2014 @10:10AM (#7883479)
https://github.com/mtford90/silk doesn't do aggregates but you can sort etc.
Re:Django Query Inspector by senko on Thursday June 12, 2014 @09:46AM (#7883319)
I love DjDT, but it doesn't detect duplicate queries and can't be used for non-HTML responses (eg JSON APIs).
Re:Django Query Inspector by leetrout on Thursday June 12, 2014 @10:09AM (#7883473)
I have a hack for that!

https://gist.github.com/leetrout/ab136dbfb97f8ee1d309

;)

Edit: After install appending `?dbg=1` to a JSON returning view will inject the html wrapper. e.g. http://foo.com/bar.json?dbg=1

Re:Django Query Inspector by abhn on Thursday June 12, 2014 @10:00AM (#7883410)
Yes I use Django Rest Framework in places and that's where the bulk of my SQL happens.