I've been running into an issue while trying to upgrade my code to use Django's new file handling system. When I try to use the `save` method of a `ImageField` instance, I get an `IOError: [Errno 37] No locks available`. The file gets created but nothing is ever written to it. Here is a basic example that illustrates the issue I keep running into.
from django.db import models from urllib import urlopen class SomeModel(models.Model): image = models.ImageField(upload_to='some_dir', blank=True, null=True) sm = SomeModel() image = urlopen('http://ecx.images-amazon.com/images/I/ 51pnPEb8STL._SS500_.jpg') sm.image.save('my_filename.jpg', image, save=False) Does anyone have any advice? Thanks in advance, Wes --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---