You're looking for the `raw()` method: http://django.me/raw. It takes
a raw SQL query and yields models for you.
Jacob
Jacob
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to
django-users...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
In my case I had to read some legacy data from a different schema on the
same MySQL server and it was easy (but perhaps not elegant) to just
establish a separate connection using MySQLdb module.
Xcellent improvement; that’s (my code) what happens when you’re too busy fixing the problem to learn the tool ;)
From:
django...@googlegroups.com [mailto:django...@googlegroups.com] On
Behalf Of Nick Arnett
Sent: Wednesday, April 13, 2011 4:44 PM
To: django...@googlegroups.com
Subject: Re: Best Practice for Raw SQL
On Wed, Apr 13, 2011 at 1:38 PM, Sells, Fred <fred....@adventistcare.org> wrote:
--