Re: unable to see SQL even after DEBUG=True in settings

2009-10-19 Thread Indu
On Oct 16, 8:22 pm, Javier Guerra wrote: > On Fri, Oct 16, 2009 at 1:55 AM, Jani Tiainen wrote: > >> I have run the app such that it has executed number of db queries and I > >> know for sure there must be some sql.  But still I don't see any in > >> connection.queries.  what am I doing wrong?

Re: unable to see SQL even after DEBUG=True in settings

2009-10-16 Thread Javier Guerra
On Fri, Oct 16, 2009 at 1:55 AM, Jani Tiainen wrote: >> I have run the app such that it has executed number of db queries and I >> know for sure there must be some sql.  But still I don't see any in >> connection.queries.  what am I doing wrong? > > Are you sure that querysets are evaluated? Mean

Re: unable to see SQL even after DEBUG=True in settings

2009-10-15 Thread Jani Tiainen
Indudhar Devanath kirjoitti: > Here is what is happening. > > >>> from django.db import connection > >>> from mysite import settings > >>> settings.DEBUG > True > >>> connection.queries > [] > > I have run the app such that it has executed number of db queries and I > know for sure there mu