Reputation: 3945
I am learning Django, so I created a simple gallery application which allows me to upload images via Django admin app. When I select an image via ImageField from my computer and hit Save, it gives an error
ImproperlyConfigured at /admin/photogallery/photo/add/
The '_imaging' module for the PIL could not be imported: DLL load failed: The specified module could not be found.
I am using Django1.6, apache2.2, Python2.7.5 and PIL is also installed for this version of python.
Does anyone know how to solve this problem?
Upvotes: 3
Views: 5715
Reputation: 1
try to install PIL if you are using anaconda distro install this command
conda install -c anaconda pillow
Upvotes: 0
Reputation: 3945
As Ludwik Trammer suggested, I uninstalled the PIL and installed the Pillow and the problem solved. PIL worked fine for me with the earlier versions of Django but not with Django 1.6
Upvotes: 2