Yes maybe. You must make sure that DEBUG = True
in your settings file
you can see which sql queries were executed ...
>>> from django.db import connection >>> connection.queries
Obviously, you need to complete some queries to see them here.
To find out what is done to deliver a specific QuerySet, you can do the following
str (MyModel.objects.filter (myvar__gte = 15) .query)
Documented here is http://docs.djangoproject.com/en/dev/faq/models/
source share