+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

Related questions

0 votes
asked Apr 3, 2020 in Data Handling by amita rallin
+1 vote
asked Apr 4, 2020 in Data Handling by amita rallin
...