Sql statement for a query with the Django ORM?


from django.db import connection

sql_statement = connection.queries.pop()

print sql_statement['sql']

Comments

Popular posts from this blog

Como configurar el control de directv para que funcione con el Tv

Las Tutucas y todo lo demás

Python Ipdb Cheatsheet