I run my test sites on my small desktop computer which sadly uses Home windows. Now, i am attempting to thumbnail a picture but i am obtaining the error:
The _imaging C module is not installed
Only after i attempt to access the vista through the Apache server. Runserver pictures all right. I have installed the special precomplied binaries that others have recommended, but haven't had any luck.
Any Idea why it really works in runserver/spend although not Apache?
You must have the road to PIL in and also the other site-packages inside your path inside your .wsgi configuration file. First you have to discover the location of the site-packages (for instance: /usr/local/lib/python2.6/site-packages/), then combine it with your sys.path inside your .wsgi file. Example WSGI:
import os, sys sys.path.append('/home/www/sites/mysite', '/usr/local/lib/python2.6/site-packages/') os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()