can't see raw sql queries even with debug = True
|Reported by:||bangcok_dangerus@…||Owned by:||adrian|
|Component:||Database layer (models, ORM)||Version:||master|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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,