First, make sure that your DEBUG setting is set to True. Then, type the following commands:
from django.db import connection
connection.queries