See the other conversations at:
Django iot data streaming into app - #2 by KenWhitesell
Communication between django and external script
How to integrate GPIO input into django?
among other conversations here.