I'm having a problem uploading files on my production server. I'm using the django-stdimage on a model as follows:
class League(models.Model):
name = models.CharField(max_length=100)
logo = StdImageField(upload_to='images/league_logos', blank=True, size=(220, 120))
Using the admin app, I can upload templates on my local machine (using the dev server) just fine. On production, I have nginx for static file retrieval and apache with mod_wsgi for the rest. When trying to upload on production, I get the
'InMemoryUploadedFile' object has no attribute 'field'
error. I'm tailing the error log in apache and nothing seems to happen when I try to upload. The error is happening at
site-packages/django/contrib/admin/templates/admin/includes/fieldset.html, error at line 19
which is just a template tag accessing the field.field:
{{ field.field }}
I'm not sure how to go about debugging this. Any suggestions?
Thanks