I'm working on a platform that uses Django and Django REST Framework, so this platform is used to monitor the state of some sensors which send data to the computer.
Now I have the data in the computer, and I want to create a Python file to read the data from the computer and store it in a MySQL database that Django will read and show to the user.
I have two questions:
Can I make Django read from the file, save the data in the database, and show it in the user interface?
If not, how could I make a script to run in the background when I start the project?