Hi all, I think I got this wrong, are you saying that:

Django supports connecting to several databases at the same time?
Where do you configure each database connection? how do you tell a  
model which one to use?

maybe I got it all wrong

best regards
----nubis :)


On Sep 3, 2007, at 8:38 PM, Iapain wrote:

>
>> We have a customer management application written in Zope2 which  
>> talks
>> to a sql-ledger database.  I'd like to convert this to Django but
>> would need to talk to two separate postgres databases.
>
> Not a problem with Django, multiple dbs are supported
>
>> Can I get some comments on the practicality of this? I'm thinking of
>> using the inspectdb functions to get access to our database and then
>> playing with the generated models to talk to the sql-ledger data.
>
> Exactly, generate models using inspectdb or write yourself
> alternatively. Model will mapped to db, and you'll perform action on
> model objects.
>
>> Alternatively I could perhaps write triggers to implement some  
>> sort of
>> communication between the two databases using dblink - but that looks
>> pretty scary.
>
> You can use triggers and sql queries, or for more cleaner approach you
> can implement trigger logic into Django custom managers.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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