Re: run form save in background

2011-12-02 Thread Martin Ostrovsky
I'd rip out the non-db stuff from the form.save() method and put those in an asynchronous queue. Then you can have another process which polls the queue and performs these other tasks after the database save. So for example, you would do the following: instance = form.save() # push your task to t

run form save in background

2011-12-02 Thread brian
I'm having problems with a save method taking too long and the user thinking there is a problem with the website so they hit refresh which causes the data to be submitted multiple times. I have this in the view: - if form.is_valid(): form.save() return HttpR