Communicate between Python Script and Django

This type of situation has been talked about a couple times previously here. One I found right off-hand is How to integrate GPIO input into django?

Briefly, I would do this using Channels. I’d have the stand-alone Python script post data to a Django Channels group. One (or more!) browsers can then join that group to receive the messages.

2 Likes