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.com
Certainly. From the command line/shell:
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.com
You can decorate a request handler or other function with this and it will print the sql nicely formated with totals at the end.