So I would like for the python code in the web page to run once a second and update the page if the database has been changed but it only does it on page load due to how django works.
function refresh(){
//Clear info boxes
}
window.setInterval(refresh,1000);
Is there a way for the call from setInterval to run the python code again as well?
Aucun commentaire:
Enregistrer un commentaire