+1 vote
in Data Handling by
How can you see the raw SQL queries that Django is running?

1 Answer

0 votes
by

First, make sure that your DEBUG setting is set to True. Then, type the following commands:

from django.db import connection

connection.queries

...