Import error at setting COMMENTS_XTD_MODEL #306
Unanswered
scorpion-HF
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Does the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an app named commenting and a model named BookComment
so I set COMMENTS_XTD_MODEL='commenting.models.BookComment'
and got this error:
ImportError: Module "commenting.models" does not define a "BookComment" attribute/class
and hear my commenting.models.py:
from django_comments_xtd.models import XtdComment
from django.db import models
class BookComment(XtdComment):
pass
what can I do?
can it be a classic circular dependency problem?
Beta Was this translation helpful? Give feedback.
All reactions