djangosnippets.org: Latest snippets tagged with 'printing'https://djangosnippets.org/tags/printing/2009-04-25T11:49:30.573748-05:00Query printer coroutine
2009-04-25T11:49:30.573748-05:00fnlhttps://djangosnippets.org/snippets/1465/<p>If you would like to see the latest queries you have done when running a unittest, this is not so easy. You have to initialize the queries list and set DEBUG to True manually. Then you have to figure out a way to print the queries you want to see …</p>
Freely redistributableSQL Printing Middleware
2007-06-17T00:08:31.945718-05:00ericflohttps://djangosnippets.org/snippets/290/<p>Just put it in your python path and add it into MIDDLEWARE_CLASSES.</p>
<p>I know that there are a couple of snippets on this site that do something similar to this, but none of them quite suited me. </p>
<p>I wanted something that would indent and space the SQL so that I …</p>
Freely redistributable