Last active
August 12, 2017 15:35
-
-
Save elinaldosoft/690f73e9d75faf458643fc2c2fe67065 to your computer and use it in GitHub Desktop.
Enable log of querys in Django!
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
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': False, | |
'handlers': { | |
'console': { | |
'class': 'logging.StreamHandler', | |
}, | |
}, | |
'loggers': { | |
'django.db.backends': { | |
'level': 'DEBUG', | |
'handlers': ['console'], | |
} | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment