Well, I am not sure if this is exactly what you're looking for, but Django's ORM allows you to write custom SQL and then collect the resulting rows as objects. You can also circumvent the object layer entirely and deal directly with the SQL. Take a look at this page:
https://docs.djangoproject.com/en/dev/topics/db/sql/
I have found this functionality to be incredibly valuable for quite a few of the projects that I have worked on.