Django Query Inspector
github.com
github.com
1. django-debug-toolbar can be difficult to enable if you aren't serving from localhost (for security reasons, because your settings are included in the UI). This project looks much simpler to enable, as you just set DEBUG=True in your settings.
2. django-debug-toolbar provides its information through a UI component embedded in your own UIs, but it doesn't help you with profiling HTTP APIs that don't have a UI. In contrast, this project puts some profiling information in the response headers, and SQL logs are sent to a logger. I think this use case is where Django Query Inspector shows a lot of utility.
That's been my only complaint about an otherwise fantastic debug tool.
Anyone have any thoughts on running multiple debug tools like these together? I think mostly you would get comfortable with one and stick with it.
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
"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."
http://pushingkarma.com/notebook/django-decorator-print-sql-...
The developer probably wasn't aware of it but there's an opensource project which is trying to get a standardized profiler going for all web dev platforms: http://miniprofiler.com
It would be good to see projects like this done on top of the miniprofiler base.