Can not sync my django database after installing django.contrib.comments app -
error have:
commanderror: 1 or more models did not validate: comments.comment: accessor field 'content_type' clashes related field 'contenttype.content_type_set_for_comment'. add related_name argument definition 'content_type'. comments.comment: reverse query name field 'content_type' clashes related field 'contenttype.content_type_set_for_comment'. add related_name argument definition 'content_type'. comments.comment: accessor field 'site' clashes related field 'site.comment_set'. add related_name argument definition 'site'. comments.comment: accessor field 'user' clashes related field 'user.comment_comments'. add related_name argument definition 'user'. comments.comment: reverse query name field 'user' clashes related field 'user.comment_comments'. add related_name argument definition 'user'. comments.commentflag: accessor field 'user' clashes related field 'user.comment_flags'. add related_name argument definition 'user'. comments.commentflag: reverse query name field 'user' clashes related field 'user.comment_flags'. add related_name argument definition 'user'.
in beginning installed newer app called django_comments, , did sync database. after decided use django-fluent-comments need django.contrib.comments. insteed of django_comments put django.contrib.comments.
after sync database django project crashed error above.
so, please solve problem or give me recommendations.
thanks advices!
ps: tried create new project virtualenvironment , changed mysql sqlite3, still have error.
i solved problem. because forgot delete imports in models old app django_comments. works fine!
Comments
Post a Comment