Hey Greg, gdonald wrote: > On Mar 13, 5:03 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: >> http://www.djangoproject.com/documentation/faq/#how-can-i-see-the-raw-sql-queries-django-is-running > > When I try this I get nothing: > >> python manage.py shell > In [1]: from settings import * > > In [2]: DEBUG > Out[2]: True > > In [3]: from django.db import connection > > In [4]: connection.queries > Out[4]: [] > > In [5]: connection.queries > Out[5]: [] > > > I tried a couple of page reloads, stuff I know is querying the > database, still nothing. > > Any idea what I'm doing wrong? I think you are not seeing any queries because you didn't run any in your interactive shell. Try grabbing some data in the interactive shell and then look at your connection.queries.
Also, you might find this helpful: <http://www.djangosnippets.org/snippets/93/> Best regards, Eric. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

