django - Synchronizing two databases via mappings in Python -


i have live django 1.6 project makes use of postgresql database. i've been developing api project support mobile app - making use of south migrations go along.

as result of of this: have new database structure , code-base quite far removed production database although many of fields in production database still present in new one.

so sits - have mobile app running off new api , website running off old database.

how can go synchronizing data between 2 databases while front-end new website being developed?

i.e. when user makes use of app , later goes website, i'd data available , vice-versa.

solutions i've tried:

  • i cannot use api update new database because trigger activation emails users have been activated.
  • i've tried use peewee create synchronization script each field in 1 database mapped field in other database. has been effective tables schema similar i've had trouble when comes keeping foreign key relationships in tact.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -