Two Django projects accessing same db

36 views
Skip to first unread message

J.T.

unread,
Jun 16, 2020, 7:23:20 PM6/16/20
to Django users
I have Django project A on one server & Django project B on a different server. I want project B to be able to load data into the db associated with project A.

My question is: do I have to have the app and models on project B exactly match the app and models on project A?

Also, other than pointing the settings.py of project B to project A's database, is there anything else I need to do?

I do realize this is type of setup is frowned upon, but I need this setup for at least the time being.

Thank you.

Miracle

unread,
Jun 16, 2020, 7:46:33 PM6/16/20
to django...@googlegroups.com
You will have to connect one django project to the database as a legacy db.

You'll fake migrate, so django doesn't create it's default models twice.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6b565ce5-19f5-485b-9361-48a2f08a6a27o%40googlegroups.com.

Utsab Bashyal

unread,
Jun 16, 2020, 9:54:34 PM6/16/20
to django...@googlegroups.com
close a project and r run
 another

Reply all
Reply to author
Forward
0 new messages