Like, have them logged to the console?
If you enjoyed my content for some reason, I'd love to hear from you! Here are some options:
- You can buy me a coffee!
- Click here to post a comment!
- You can write a reply on your own site and submit the URL as a webmention via the form below.
- Or you can just contact me!
I usually use http://github.com/robhudson/django-debug-toolbar where it tells you the queries and how long they actually take to execute.
via stackoverflow.comCertainly. From the command line/shell:
Variant 2:
If you want to print the queries used to render a page then you can use the toolbar as @Meitham suggested or use this Django snippet.
via stackoverflow.comYou can decorate a request handler or other function with this and it will print the sql nicely formated with totals at the end.