Skip to content

Instantly share code, notes, and snippets.

@jfilipe
Created December 5, 2013 17:17
Show Gist options
  • Save jfilipe/7809493 to your computer and use it in GitHub Desktop.
Save jfilipe/7809493 to your computer and use it in GitHub Desktop.
Displays Django ORM calls as they are being executed.
# %cpaste the following code in a shell_plus session
import logging
l = logging.getLogger('django.db.backends')
l.setLevel(logging.DEBUG)
l.addHandler(logging.StreamHandler())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment