The database configuration is as follows:
https://dev.mysql.com/doc/connector-python/en/connector-python-django-backend.html
As the title?
Previously django.db.backends, I added the following configuration in setting.py, print execution SQL statement。
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console':{
'level':'DEBUG',
'class':'logging.StreamHandler',
},
},
'loggers': {
'django.db.backends': {
'handlers': ['console'],
'propagate': True,
'level':'DEBUG',
},
}
}