--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/37febb44-36e2-47ca-9eff-7011c4e9b963n%40googlegroups.com.
--
--
Have a Django view return a JsonResponse containing your list.
def json_returning_view(request): .... return JsonResponse(data)You can then use fetch() to get the data, decode it, then display it one by one.
fetch('<your Django endpoint>') .then(response => response.json()) .then(data => data.forEach(item => setInterval(displayItemFunction(), <time in ms>)));