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.

There are a few blog posts around about accessing multiple databases in
ways that work reliably, until such time as Django ships with it by
default. I'll just point you to this one, since I had the link to hand: 
http://www.mechanicalgirl.com/view/multiple-database-connection-a-simple-use-case/

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to