django - how to get model objects from another process instead of database
You may be able to serialise your model and pass the serialised data.
I have a TCP server, a Python app, that gets the information from the connected devices. This information I am trying to show using Django web app. So, basically my model objects reside within the TCP server process.
I can modify the TCP server to put the information into SQLite database and have my Django web app take it from there. But, it is not the most natural way of sharing information in this case because this information is not persistent i.e. not suitable for database. When my TCP server exists, it has to clear this information.
How do I model this scenario using Django?