我正在使用此示例中提供的内置注释框架中的djangos: https ://docs.djangoproject.com/en/1.3/ref/contrib/comments/example/还有一个示例代码,说明如何实现基本的注释提交表单{% render_comment_form for entry %}
当我使用此代码时,我得到一个错误,我的新闻模型确实具有“ add_comment”属性。 但是在示例中对此一无所知,所以我问这个“ add_comment”应该如何工作?
渲染时捕获ViewDoesNotExist:在模块news.views中尝试了add_comment。 错误是:“模块”对象没有属性“ add_comment”