beatonma / django-wm

Automatic Webmention functionality for Django models
https://beatonma.org/webmentions_tester/
GNU General Public License v3.0
13 stars 2 forks source link

ImportError when adding 'MentionableMixin' to models.py #5

Closed rasulkireev closed 4 years ago

rasulkireev commented 4 years ago

Michael,

I receive this error when I am trying to add MentionableMixin to my 'Posts" model.

ImportError: cannot import name 'MentionableMixin' from 'mentions' (/lib/python3.7/site-packages/mentions/__init__.py)

You have any thoughts on that? Thanks a ton in advance.

Best, Rasul

beatonma commented 4 years ago

Hey,

Sorry about that - that's a mistake in the readme. Use from mentions.models.mixins.mentionable import MentionableMixin instead.

By the way, I got your message about Redis/RabbitMQ - will respond to that separately once I get a chance to check it out.

Thank you for the report and please let me know of any further issues.

Michael

rasulkireev commented 4 years ago

Thanks for such quick response and for such quick solution.