I have one master django sever where the data are stored (mysql database).
Online : I would like many users to have a copy from this database synchronized (only delta's must be copied) on their laptops (sqlLite DB)
Offline (users do not have access to the master server) : users can view and update their local database.
Back to Online : what has been modified on users laptops is synchronized back to the master django server.
I think,as I have 2 kind of database, I need to synchronize at django object level. Is there a django application doing that ? If not, how will you procced to code such a feature ?
Offline data sync is an SDK feature of Azure Mobile Apps. Data is stored in a local store. When your app is offline, you can still create, modify, and search the data. Data is synchronized with your Azure Mobile Apps service when your device is online.
You can make Django web apps work faster, more engaging and also work offline. You just need to have support for sevice worker's in your target browser.
mysql' line tells Django to use its built-in MySQL database backend. The read_default_file option points to /etc/mysql/my. cnf , the MySQL option file you edited earlier. This tells Django where it can find the relevant connection details to connect to the MySQL database you created in Step 1.
Turns out that I'm running a system like this in Django.
This is not a complete answer, just the answer that is currently solving (mostly) the problem.
We have run into very little trouble with this simple system, also helped since the content is properly categorized and the editors only create/edit a non overlapped set of categories.
I have talked with this with some people, and proposed me several solutions:
Hope this helps in some way. If anyone decides to implement something of this, I'll love to hear from him.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With