Q&A
Ask and answer questions to make information more available to wider audiences.
Ricky Baret @baretricky   04, May 2023 12:00 AM
raw SQL queries running in Django
How can I see raw SQL queries running in Django?
answers 1
 
Answer 1
Gunnar Bloxham @bloxhamgunnar   05, May 2023 07:46 PM
To begin, make sure that the DEBUG setting is set to True. If the setting is squared away, then type the following commands:
1) from Django.db import connection
2) connection.queries