Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sync local and remote database

I have finished writing this inventory project in Django it includes a sales app I intend on having 2 version of the project one on local machine the other uploaded to Heroku. In a situation were network won't be available (most time there is none) I want to use the offline version to print invoice and make sale.

Later when the network kicks in I can sync it to the remote database to match the local database. I've read Django sync-tool didn't get it that much I also read Django multi database in the doc but I guess that is not suitable for what I intend to do. I also read django-replicated but seems to be MySQL driven as I currently run my project using Postgres.

I am running Django 2.1, Python 3.6.

like image 732
Martins Avatar asked Aug 16 '26 01:08

Martins


1 Answers

After much contemplating I decided to go with django-sychro https://github.com/zlorf/django-synchro

after updating it to be compartible with my django version

like image 108
Martins Avatar answered Aug 18 '26 17:08

Martins



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!