Foreign key issue

17 views
Skip to first unread message

Akshay Jain

unread,
Aug 21, 2018, 7:27:41 AM8/21/18
to django...@googlegroups.com
Hello,

In my Django application, I want to use a foreign key from one db to another. Is it possible? as I'm able to see the listing in /add endpoint but when I try to save It says that the table doesn't exist.

Thanks
--
Regards,
Akshay Jain

Jason

unread,
Aug 21, 2018, 8:07:15 AM8/21/18
to Django users
If you think about it, you might see why you could do this, but you'd lose everything related to referential integrity.  Nothing stopping you from making a router that behind the scenes uses multiple dbs seamlessly, but how would you handle changes from the other db in your own if you can't get notified of updates or deletes?  THat way, your own data can get very out of sync with the other db.


Akshay Jain

unread,
Aug 23, 2018, 8:41:23 AM8/23/18
to django...@googlegroups.com
Thanks Jason, fair point.

On Tue, Aug 21, 2018 at 5:37 PM Jason <jjohn...@gmail.com> wrote:
If you think about it, you might see why you could do this, but you'd lose everything related to referential integrity.  Nothing stopping you from making a router that behind the scenes uses multiple dbs seamlessly, but how would you handle changes from the other db in your own if you can't get notified of updates or deletes?  THat way, your own data can get very out of sync with the other db.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d9623fee-54bd-42d9-adf0-49ae184c3619%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Regards,
Akshay Jain
Reply all
Reply to author
Forward
0 new messages