I was wondering if it possible to create two Django website Both work independently. If the User signup on site A The new contact information will be sent to site B using API automatically.
If the user adds a post on site A, site B gets its copy.
Site B is the parent of multiple sites like site A owned by users.
The users create something on their local site, and B gets a copy of the user push.
I'm looking to create a federated network of multiple social websites and a Base website for the storing of Public posts only.
CodePudding user response:
The best solution for this is to make Restful backend that will be shared among many websites.
CodePudding user response:
whenever a user create their profile/sign up, be sure that the client send a request to 2 origins (in your case 2 backends), this way, the user profile is stored in both backends
OR
figure out how to connect the same database (or part of it) to the two projects.
I suggest the first method, since it is easier to do and maintain.
Edit:
for the 2nd suggestion, the only way you can share a table (users table) between 2 db, is by copying the table to the other db, which seems ineffective.