// archives


This tag is associated with 1 posts

Django ImageField validation error caused by incorrect PIL installation on MAC

I kept getting a validation error in the django admin pages while trying to upload an image. The validation error said:
Upload a valid image. The file you uploaded was either not an image or
a corrupted.
I really broke my brains on this one but finally got it to work! I knew for sure that [...]

Bug? ImageField validation error

Go to c:/python2.4/lib/site-packages/django/core/validators.py
/usr/lib/python2.4/site-packages/django/core/validators.py , if you
are using Fedora
comment the following lines (the line numbers in my version is 186 and
trial_image = Image.open(StringIO(content))
could be related to http://code.djangoproject.com/ticket/7608


  • No categories

Django Hosting:

DjangoDays recommends the following Django hosting provider: