在setting中添加以下内容
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console':{
'level':'DEBUG',
'class':'logging.StreamHandler',
},
},
'loggers': {
'django.db.backends': {
'handlers': ['console'],
'propagate': True,
'level':'DEBUG',
},
}
}
标签:语句,loggers,console,handlers,Django,MySQL,DEBUG
From: https://www.cnblogs.com/zylyehuo/p/17066713.html