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.

Like it? Hate it? Correct it! Tweet it!

Tags: , ,

View Comments to “Django + Satchmo: ImportError: cannot import name ImageField”

  1. bobwaycott Says:

    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.

  2. Brian Says:

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

  3. ben Says:

    saved! thanks.

  4. Evan Reiser Says:

    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

  5. SEO Miami Says:

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

Leave a Reply

blog comments powered by Disqus