﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
2710	can't see raw sql queries even with debug = True	bangcok_dangerus@…	Adrian Holovaty	"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
"	defect	closed	Database layer (models, ORM)	dev	normal	invalid			Unreviewed	0	0	0	0	0	0
