Reputation: 5537
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
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