qarthandso
qarthandso

Reputation: 2188

Connecting 2 Django Projects on Different Servers

For reasons out of my control, 2 Django projects were placed on 2 different AWS servers, both using the same RDS AWS database.

I want Project B to be able to access and manipulate the models (tables) used in Project A (where they were originally created).

Is this at all possible? Importing the Project A app over the network via the PYTHONPATH in some way?

Upvotes: 0

Views: 567

Answers (1)

rob
rob

Reputation: 2144

Sorry...I lack the reputation to comment otherwise I would not have posted.

I think in this situation, you may need to make use of the Django REST Framework.

This way you can simple authorize the projects to talk to each other, DRF comes with httpbasic built in, but you probably should try to set up some type of hashed token as part of the auth.

I found this guide recently...although it's specific to mobile devices, it's probably one of the better walkthroughs of the DRF.

Upvotes: 1

Related Questions