Comment
Comment by jiaaro
If you use postgres, psycopg provides `cursor.mogrify(query, params)` which returns the actual query that will be executed . For example:
Alternatively, you can set the log level of the `django.db.backends` logger to DEBUG to see all executed queries