Meghdeep Ray
Meghdeep Ray

Reputation: 5537

Synchronize Databases, one in Django, one is a php sql, both hosted online

I have 2 databases, one in the models of a Django server, the other is an sql with php. Is there any way to synchronize these 2 databases ? Or at least a few fields ?

Upvotes: 0

Views: 55

Answers (1)

SaeX
SaeX

Reputation: 18691

Your question is a bit unclear, but Django offers the inspectdb option, which will try to integrate with an existing database.

There is an official howto available.

Once you run python manage.py inspectdb > models.py, you'll likely want to adjust, or at least thoroughly review, before issuing the migrate command.

Upvotes: 2

Related Questions