Interaction between Python script and Django

See the discussion at How to integrate GPIO input into django? for some ideas to get started.