Created
June 2, 2011 14:27
-
-
Save thanos/1004547 to your computer and use it in GitHub Desktop.
to see the SQL used when I'm in the django python 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
| # to see the SQL used when I'm in the django python shell | |
| 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