3 ms·
I haven't worked with Django in a bit so my memory is foggy, but if settings.DEBUG is true, you should be able to do something like: from django.db import
by funksta 14y ago
I haven't worked with Django in a bit so my memory is foggy, but if settings.DEBUG is true, you should be able to do something like:
from django.db import connection
print len(connection.queries)
Put that in a middleware class's process_response() and it should print the query count for every request.