ajax - executing script in server & displaying continuous output of script in the webpage using Django/python -


i have django web application running. has web page form & takes few inputs. on execute button calls method in views.py & inside i'm taking fields entered user & executes script in server runs around 1hr. requirement show output of script user in webpage continuously have been if script triggered in shell.

can please guide me or point me in right direction on how achieve this?

take @ swampdragon. allows subscribe server events via websockets (sockjs). should end having like:

  • django server swampdragon sending publish events everytime want display clients (new output).
  • a js client subscribes swampdragon events/channel receive them. everytime receive new event, need update html content new data received.

in swampdragon documentation have working examples test it.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -