Thanks James, that did the trick. For others that may be looking, here is my solution:
In my settings file I added below the middleware setting: if DEBUG: MIDDLEWARE_CLASSES += ('web.middleware.Logging',) and in a file called "middleware.py" in my project directory (/web): from django.db import connection class Logging: def process_response(self, request, response): for query in connection.queries: print "[%s] %s" % (query['time'], " ".join(query['sql'].split())) return response Which results in all the queries being output to standard output. Of course this could be improved on, but is a base. Thanks again, Eric --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---