This is a little of a newb question but I am trying to write a program in Django which controls an arduino from a django site though a serial connection. As an ardunio has a 'feature' which resets it when a new serial connection is made it means that it can't constantly just send the single command every time the page is loaded. So I am wondering:
I have already written the python program which controls the arduino over the serial port with no problems.
Is it possible to run a python script in the background (i.e. it stays active and keeps the serial connection active) of a django app/site and if so how to communicate with that running process via django so I can have pages with buttons which then pass a value to that background process?