Created
October 5, 2015 15:17
-
-
Save inakidelamadrid/443e1629c3c5c387390d to your computer and use it in GitHub Desktop.
How to check SQL queries in Django shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use sql_with_params method | |
Account.objects.values_list('id').query.sql_with_params() | |
Account.objects.all().query.sql_with_params() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment