Skip to content

Instantly share code, notes, and snippets.

@mitchellrj
Created May 17, 2016 11:35
Show Gist options
  • Save mitchellrj/ccf2e36da3753f6a1749901ffcf98850 to your computer and use it in GitHub Desktop.
Save mitchellrj/ccf2e36da3753f6a1749901ffcf98850 to your computer and use it in GitHub Desktop.
Show all queries in console for Django
LOGGING = {
'handlers': {
'console': {
# ...
},
# ...
},
'loggers': {
'django.db.backends': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': True,
},
# ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment