Hi, try http://www.djangosnippets.org/snippets/93/ with the standard debug context preprocessor shipped with django (see the snippet for how-to)
it seems cleaner to add this to your base template than to hackishly replace the </body> tag. If you, however, don't use django templates, you might want to use your own alternative... On 4/22/07, aaloy <[EMAIL PROTECTED]> wrote: > > 2007/4/21, Jesse Lovelace <[EMAIL PROTECTED]>: > > > > Hey all, > > > > I made this the other day to help me track all the sql statements my > > pages were doing. I wanted something unobtrusive (i.e. middleware) > > and simple. Hope you like: > > > Hi! > Thanks you for sharing it with us. > I have addapted the middleware to print also the number of querys and > instead of using a <pre> create a textarea. As actually I'm playing > with cach�s and optimizing the application in what I'm working right > now [1], your code it's a nice tool for the job. > > Perhaps you could also publish it at djangosnippets [2] > > Best regards, > > [1] http://trobacasa.com > [2] http://www.djangosnippets.org/ > > -- > Antoni Aloy L�pez > Binissalem - Mallorca > http://www.trespams.com > Soci de Bulma - http://www.bulma.cat > > > > -- Honza Kr�l E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

