Re: Legacy Databases - custom filter?

2008-05-18 Thread Dougal
Thank your very much, thats just what I've been looking for. :-) Dougal On May 18, 10:23 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Sun, May 18, 2008 at 4:10 PM, Dougal <[EMAIL PROTECTED]> wrote: > > How would I then do this SQL manually? I know writing SQL is to be > > avoided but is

Re: Legacy Databases - custom filter?

2008-05-18 Thread James Bennett
On Sun, May 18, 2008 at 4:10 PM, Dougal <[EMAIL PROTECTED]> wrote: > How would I then do this SQL manually? I know writing SQL is to be > avoided but is there an easy way to execute SQL commands? Writing SQL is *not* to be avoided. Using an ORM is basically a trade-off, where some things are

Legacy Databases - custom filter?

2008-05-18 Thread Dougal
I've had a look at http://www.djangoproject.com/documentation/legacy_databases/ but it doesn't cover too much detail... I've got a mySQL 5 database with a number of tables. The data structure requires a few complex queries that I don't see how I can do through the models. How would I then do