Skip to content

Instantly share code, notes, and snippets.

@shazow
Last active December 14, 2015 09:59
Show Gist options
  • Save shazow/5069012 to your computer and use it in GitHub Desktop.
Save shazow/5069012 to your computer and use it in GitHub Desktop.
Django settings.py query logging
# ...
LOGGING = {
# ...
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
},
# ...
},
'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