Created
December 5, 2013 17:17
-
-
Save jfilipe/7809493 to your computer and use it in GitHub Desktop.
Displays Django ORM calls as they are being executed.
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
# %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