Hacker News new | ask | show | jobs
by famousactress 5166 days ago
I dig this, a lot. Anyone know if there's a Django equivalent yet? If not, I know what I'll be doing with at least one evening this week...
2 comments

Playfire has released something that will tack a comment onto all your queries for you: https://github.com/playfire/django-append-url-to-sql/
Brilliant. Thanks!
Django debug toolbar can show you where awk/grep queries are called
Right, but that's a totally different solution. It only tells when I ask it, and it doesn't work for any query not issued in a rendered view (most of our data access is AJAX). I like the 37s solution because I can leave it running on a system and then find stack information in the slow query log later on.