Image Upload broken on the web, but PIL runs fine in django shell Image Upload broken on the web, but PIL runs fine in django shell unix unix

Image Upload broken on the web, but PIL runs fine in django shell


Debugging tip: add some print statements in your code (or add logging) in the place in your code where you're having problems.

import sysprint sys.pathprint PIL.__file__print your_image_objectprint type(your_image_object)

Things like that. Perhaps it will pinpoint your problem

Another thought: you said you installed pip in a virtualenv. Is your virtualenv active when you run it via your webserver?