I've got a Picture model which has a rather lengthy/resource-intensive
custom save() method, with lots of PIL operations and whatnot. I've
noticed that if I access a view that would call a Picture from the
database while it's still in its save phase (it can take a good thirty
seconds), I get the following browser error:

******

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /wangfujing/.

Reason: Error reading from remote server

******

I'm regularly adding photos, and there are a fair number of people
looking at the site, and I'm hoping there's something I can do on the
Django end to keep the Picture invisible while it's still in its
save() phase. Is this what 'transactions' means? Anyway, it's not a
disaster, but any advice in this direction would be much appreciated.

Eric
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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