#2710 closed defect (invalid)
can't see raw sql queries even with debug = True
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I've tried pretty much everything I can to see the raw SQL django is generating. It seems simple enough:
$ ./manage.py shell >>> from django.db import connection >>> connection.queries
but all I get is an empty list (i.e. []).
I've tried doing this both before and after starting the server, and created and deleted entries using the admin interface to make sure the database is being hit, but no luck. My debug setting is definitely on, (I get debug messages in my browser when something's wrong) and I'm using a very recent version ('svn update' reports revision 3754).
Am I missing something really stupid? Everything else seems to be working fine. I'm using Python 2.4.2, PostgreSQL 8.1.4 with psycopg 1.1.21 on Slackware Linux 10.2.
Thanks for any help,
Basil Revelas
Hey there,
Sorry to make you jump through hoops, but please ask this on the django-users mailing list, not in the ticket system. The ticket system is for bugs and feature requests, not for technical support.