Skip to content

Instantly share code, notes, and snippets.

@thanos
Created June 2, 2011 14:27
Show Gist options
  • Select an option

  • Save thanos/1004547 to your computer and use it in GitHub Desktop.

Select an option

Save thanos/1004547 to your computer and use it in GitHub Desktop.
to see the SQL used when I'm in the django python shell
# to see the SQL used when I'm in the django python shell
import logging
l = logging.getLogger('django.db.backends')
l.setLevel(logging.DEBUG)
l.addHandler(logging.StreamHandler())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment