Consulta de impresión django
print(MyModel.objects.filter(name="my name").query)
Kind Kestrel
print(MyModel.objects.filter(name="my name").query)
from django.db import connection
print(connection.queries)