Django + Satchmo: ImportError: cannot import name ImageField
I’m experimenting with Django for Dots Shop. Satchmo seems to be the thing to use.
But it’s a real pain to install. I keep getting the error:
ImportError: cannot import name ImageField
No-one on the Internet has mentioned this. The only way I found to fix it was to search+replace in the Satchmo project for:
from django.db.models.fields import ImageField
and replace with
from django.db.models.fields.files import ImageField
Four occurences.
I’m using SVN Django (a2), and Satchmo 0.7.
August 12th, 2008 at 3:16 pm
Thanks a bunch … just ran into this this morning. Hope you stay the top hit. Will drop a link on my blog to this post.
August 12th, 2008 at 8:41 pm
Thanks a bunch, too! I noticed they fixed this in the “multi-shop” branch, so hopefully this gets updated in trunk soon, too!
August 16th, 2008 at 9:19 pm
saved! thanks.
August 16th, 2008 at 11:38 pm
Any idea what version of django they removed Imagefield from django.db.models.fields? Cause we were having the same problem upgrading http://www.gamernook.com and didnt want to go through all the files to update the references
April 29th, 2010 at 7:09 am
I haven't used it. But i am familiar with this error. Because one of my friend used it.