[Answered ]-Updating client page only when new entry comes in database in Django

-1👍

Its really easy.

NOTE : You need one database field for store create row date time

**Algo**

Its really easy..

Step 1) When page render try to fetch all data from database

Step 2) store latest created date in javascript variable

Step 2) After interval by jquery or other client side programming language try to fetch only those data which is more then latest created date

step 3) Append new row by jquery or other client side programming language

2👍

you need to elemplments the poll/long poll or server push.

👤Yohn

1👍

You can look for websockets…

Looking a this page may help…
https://www.djangopackages.com/grids/g/websockets/

pypi.python.org/pypi/django-websocket

A post on the subject here

👤Xelt

Leave a comment