django-blog-zinnia / cmsplugin-zinnia

Bridge between django-blog-zinnia and django-cms
BSD 3-Clause "New" or "Revised" License
53 stars 46 forks source link

ImportError: cannot import name 'Author' #35

Closed alsoicode closed 9 years ago

alsoicode commented 9 years ago

I'm attempting to use cmsplugin_zinnia with the django-1.7 feature branch of django-blog-zinnia. When running:

python manage.py syncdb --all

I receive an ImportError exception: cannot import name 'Author'. I'm using Python 3.4.1, Django 1.7.1 and Heroku's Cedar stack.

rkorkosz commented 9 years ago

I have similar problem, with django-1.7 feature branch, when i run python manage.py check i got errors:

cmsplugin_zinnia.LatestEntriesPlugin.authors: (fields.E300) Field defines a relation with model 'zinnia.Author', which is either not installed, or is abstract.
zinnia.Entry.authors: (fields.E300) Field defines a relation with model 'zinnia.Author', which is either not installed, or is abstract.
Fantomas42 commented 9 years ago

For the now, this is not tested, but I will take a look on this issue once the django-1.7 branch will be merged.

@Korkki Please don't mix the issues.

dtrudg commented 9 years ago

Edit previous version of this comment was nonsense.. doh!

See

[https://github.com/Fantomas42/django-blog-zinnia/commit/5cd9cbed1ffb055e1dd160c42e4fcc89a9d32f56]

For now, changing import line in cmsplugin_zinnia/cms_plugins.py

from zinnia.models.author import Author

... makes it work for me.