Re: django doesnt wait for my time.sleep

2015-03-04 Thread Vijay Khemlani
Also, why would matplotlib return without having finished its job? On Wed, Mar 4, 2015 at 2:58 PM, Bill Freeman wrote: > Sleeping in a web server, which potentially has many users, is considered > bad form, even if it works. A better place for such time outs is in > JavaScript in the browser.

Re: django doesnt wait for my time.sleep

2015-03-04 Thread Bill Freeman
Sleeping in a web server, which potentially has many users, is considered bad form, even if it works. A better place for such time outs is in JavaScript in the browser. Some designs use a view that the JavaScript (or user) can poll to determine when the resource is available. On Wed, Mar 4, 2015

Re: django doesnt wait for my time.sleep

2015-03-04 Thread Erik Cederstrand
> Den 04/03/2015 kl. 18.03 skrev dk : > > i am using matplotlib to generate a plot/graph, even do that python is > generating the file and saving it so I can use it later on in my web page, > django show the page before the process finish, > so I decided to put a time.sleep(3) so it wait 3 se