On Wed, Jun 2, 2010 at 4:01 PM,  <xordo...@linovia.com> wrote:
> Hello,
>
> I am currently working on a project on which we access two different
> databases.
> One is a legacy database used by another application, the second being the
> django dedicated db.
> For some reason, I need to have model links (FK) from the django db to
> legacy one but for consistency reasons, this is not possible out of the
> box.
> I searched a bit and saw that routers *may* solve this.
>
> It is not very clear to me so I'd like confirmations or not about my
> guesses.

http://docs.djangoproject.com/en/1.2/topics/db/multi-db/#cross-database-relations

Generally speaking, cross-database foreign keys falls into the
category of "if you need to ask, the answer is no". It should be
possible, depending on your exact requirements and setup, but there
are lots of little details that need to be sorted out and obstacles
that may cause problems. These problems and their solutions aren't
documented; if you *really* need cross database keys, you're going to
need to spend some quality time with Django's source code.

Yours,
Russ Magee %-)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to