Code

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#2710 closed defect (invalid)

can't see raw sql queries even with debug = True

Reported by: bangcok_dangerus@… Owned by: adrian
Component: Database layer (models, ORM) Version: master
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by adrian

  • Resolution set to invalid
  • Status changed from new to closed

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.

comment:2 Changed 8 years ago by anonymous

my bad :)
-Basil

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.