Last active
December 11, 2018 07:35
-
-
Save nelsonsequiera/9fa079a46092126a16c42ab91707b368 to your computer and use it in GitHub Desktop.
django show queries on console
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
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