3 ms·
I love DjDT, but it doesn't detect duplicate queries and can't be used for non-HTML responses (eg JSON APIs).
by senko 12y ago
I love DjDT, but it doesn't detect duplicate queries and can't be used for non-HTML responses (eg JSON APIs).
- abhn 12y agoYes I use Django Rest Framework in places and that's where the bulk of my SQL happens.
- leetrout 12y agoI have a hack for that! https://gist.github.com/leetrout/ab136dbfb97f8ee1d309 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 http://foo.com/bar.json?dbg=1