djangosnippets.org: Latest snippets posted by wojashttp://djangosnippets.org/users/wojas/2010-03-18T13:36:17.173986-05:00wojasOutput sql_queries in Firebug console when in debug mode
2010-03-18T13:36:17.173986-05:00wojashttp://djangosnippets.org/snippets/1962/<p>Add this code to the end of the <code><body></code> of your main template and it will print out all your SQL queries with timings in the Firebug console.</p>
<p>This uses the "django.core.context_processors.debug" template context processor, which requires that DEBUG=True and that your IP address is listed in INTERNAL_IPS.</p>
Freely redistributable