On Dec 4, 2009, at 12:10 PM, Philippe Clérié wrote:

> I am working on an application that requires getting some data offsite, 
> process it and load the site database. This process can take up to five 
> minutes. I would like to be able to capture the output and present it to the 
> user so he knows how far along he is and whatever errors he needs to know 
> about.
> 
> I was thinking of using a page with HTTP Refresh and show the current output 
> of the process via a pipe. I'm not sure how feasible that is. Are there any 
> know solution to this type of situation?
> 
> Thanks for any tip!!
> 
> -- 
> 
> 
> Philippe
> 

How about AJAX? You could have JavaScript that sends a request to one of your 
Django URLs, which has a view that returns the current status.
You could than use JavaScript to update the status on the page without any 
reloading.

I do something similar with a Web page that does an API lookup. The page loads, 
then an API call check's a users account balance. Once the result comes back, 
the balance is shown on the page.

Shawn

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to