On Tue, 2008-12-16 at 14:28 +1100, Malcolm Tredinnick wrote: > > On Tue, 2008-12-16 at 15:25 +1300, Tom Eastman wrote: > > Hey Guys, > > > > I'm about to start developing a web front-end for a large database being > > developed by a colleague. The web front-end is only going to be > > accessing a sub-set of the database, and mostly via 'views' that will be > > specific to the requirements of the web frontend. > > > > I want to use Django, since I'm vaguely familiar with it (and it rocks). > > But what I want to do is have one database for all the django-specific > > stuff, so that I don't have to create any django-specific tables in the > > main database. > > > > Can anyone point me in the direction of achieving this? Will I still be > > able to take advantage of Django's database API or will I end up having > > to drop to raw SQL a lot more? > > You'll probably want to set things up so that the "natural" database is > your Django-specific one and then accesses to the other database is done > via a custom manager.
In hindsight, I probably wasn't clear as to why I'm suggesting this: there are a lot of places where Django would like to write to your database (sessions, auth lookups, ...). You can configure around and away from each of those in turn, but, if this were me, I'd save on brain wear-and-tear by letting Django behave normally until and unless I wanted to talk to this other read-only database and then I'd explicitly point my database connection in that direction. I have no stronger technical reason for my suggestion than that; it's primarily intuition and gut-feeling, but you don't have to tell anybody that. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

