Enable SQL query logging to console for development.

This commit is contained in:
Josh Washburne 2018-01-04 16:30:31 -05:00
parent e0465acb67
commit dae133e5c3

View file

@ -17,3 +17,20 @@ DATABASES = {
DEBUG = True DEBUG = True
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
}
},
'loggers': {
'django.db.backends': {
'handlers': ['console'],
'level': 'DEBUG',
},
}
}