1

I am relatively new to django and have no previous experience of web development. One of my views reads data from a device trough python and shows them in html page.

How can I refresh the page every x seconds without external input? I am looking for something similar to a while loop in python programming.

leonardo
  • 15
  • 2
  • Use JavaScript: https://developer.mozilla.org/en-US/docs/Web/API/Location.reload and [setTimeout()](https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers.setTimeout). – George Cummins Sep 22 '14 at 20:30
  • http://stackoverflow.com/questions/2787679/how-to-reload-page-every-5-second The isn't Django specific btw. – Joren Sep 22 '14 at 20:43
  • thank for answering: fast and easy! – leonardo Sep 22 '14 at 20:58

0 Answers0