Update HttpResponse Every Few Seconds

yhicerkac

New Member
My application in Django can create some very big SQL queries. I currently use a \[code\]HttpRequest\[/code\] object, for the data I need, then a \[code\]HttpResponse\[/code\], to return what I want to show the User. Obviously, I can let the User wait for a minute whilst these many sets of queries are being executed and extracted from the database, then return this monolothic HTML page.Ideally, I'd like to update the page when I want, something like:\[code\]For i,e in enumerate(example): Table.objects.filter(someObjectForFilter). #Return the object to the page. #Then Loop again, 'updating' the response after each iteration.\[/code\]Is this possible?
 
Back
Top