Actually, you should be using the [Django ORM](https://docs.djangoproject.com/en/1.5/topics/db/queries/) to run queries.