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 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? Meaning that you actually 
access them, just create querysets.

Also in your example there is no queries happening, nor constructed.

-- 
Jani Tiainen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to