News for hackers. Stuff that matters.
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.