Skip to content

Instantly share code, notes, and snippets.

@jfilipe
jfilipe / gist:7809493
Created December 5, 2013 17:17
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())