Created
February 27, 2015 09:43
-
-
Save barseghyanartur/ec823de6311b51cd56cc to your computer and use it in GitHub Desktop.
See SQL queries executed by Django in while doing things in Python shell
This file contains 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
import logging | |
logger = logging.getLogger('django.db.backends') | |
logger.setLevel(logging.DEBUG) | |
logger.addHandler(logging.StreamHandler()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment