Skip to content

Instantly share code, notes, and snippets.

@inakidelamadrid
Created October 5, 2015 15:17
Show Gist options
  • Save inakidelamadrid/443e1629c3c5c387390d to your computer and use it in GitHub Desktop.
Save inakidelamadrid/443e1629c3c5c387390d to your computer and use it in GitHub Desktop.
How to check SQL queries in Django shell
# 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