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.

This entry was posted in Projects and tagged , , . Bookmark the permalink.
  • http://www.bobwaycott.com/ bobwaycott

    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.

  • http://www.bobwaycott.com bobwaycott

    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.

  • Brian

    Thanks a bunch, too! I noticed they fixed this in the “multi-shop” branch, so hopefully this gets updated in trunk soon, too!

  • Brian

    Thanks a bunch, too! I noticed they fixed this in the “multi-shop” branch, so hopefully this gets updated in trunk soon, too!

  • ben

    saved! thanks.

  • ben

    saved! thanks.

  • http://gamernook.com/ Evan Reiser

    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

  • http://gamernook.com Evan Reiser

    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

  • http://www.canedesign.com SEO Miami

    I haven't used it. But i am familiar with this error. Because one of my friend used it.