On Aug 8, 12:53 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
> On 8/8/07, AnaReis <[EMAIL PROTECTED]> wrote:
>
> > I have DEBUG=true in the settings file.
>
> Perhaps you mean DEBUG = True? The case of "true" matters.
>
> > I opened a python shell and typed:
> > >>> from django.db import connection
> > >>> connection.queries
> > []
>
> Had you previously done queries using that process? Django doesn't
> collect the queries cross-process.
>
> >>> from yourapp.models import YourModel
> >>> YourModel.objects.count()
> 1
> >>> from django.db import connection
> >>> connection.queries
>
> [{....},...]
>
> No?
Thanks, I understand now. :)
This connection.queries list doesn't get the ones I made on the
webpage.
It worked the way you suggested.
Ana
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---