[Answered ]-Django MemoryError Importing Lots of Data from XML Files

1👍

Here’s how to display the queries:

from django.db import connection
print connection.queries

For more info see this faq entry.

1👍

You can also log sql queries via Django Logging, at least in Django 1.3.x

https://docs.djangoproject.com/en/dev/topics/logging/

👤Sid

Leave a comment