oTree Forum >

Data only accessible in db.sqlite3 after re-starting the server

#1 by m_schneider

Hi everyone!

I am working on a project where two apps run in one setup and both apps write and read from the same database. Both apps have separate configs in the settings file. While app A will be accessed by individuals A first, app B will be accessed by individuals B and I am using the data generated by A as inputs in app B.

I read the relevant data from db.sqlite3 into the app in B. The issue is that the inputs made in A are only reflected when I restart the server before starting app B. When I do not do this, then the data in A is not reflected in the database and thus not read by app B (as if it would not the be there). This goes against my initial purpose of this setup.

How can I ensure that the changes in A are pushed to the database and thus effectively read without having to restart the server?

Happy to clarify if something is unclear!

Any help is very much appreciated!

#2 by Chris_oTree

I don’t recommend reading directly from oTree’s database. Make your own separate database and use that.

#3 by m_schneider

I see and thanks for the heads up. Just for understanding purposes: Why does it not work without relaunching the server? The reading of the database works fine once restarted

Write a reply

Set forum username