Created
September 1, 2015 06:13
-
-
Save iOS0x00/7b0d07d640ed8775a876 to your computer and use it in GitHub Desktop.
Django调试ORM的日志配置
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': { | |
'handlers': ['console'], | |
'level': 'DEBUG', | |
}, | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment