Skip to content

Instantly share code, notes, and snippets.

@barseghyanartur
Created February 27, 2015 09:43
Show Gist options
  • Save barseghyanartur/ec823de6311b51cd56cc to your computer and use it in GitHub Desktop.
Save barseghyanartur/ec823de6311b51cd56cc to your computer and use it in GitHub Desktop.
See SQL queries executed by Django in while doing things in Python shell
import logging
logger = logging.getLogger('django.db.backends')
logger.setLevel(logging.DEBUG)
logger.addHandler(logging.StreamHandler())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment