def executesql(query,param): from django.db import connection cursor = connection.cursor() return cursor.execute(query,param)