0
我的django项目名为comments
是here。它有一个应用程序comms
,它可以使用django_comments
来显示评论。使用django_comments但'QuerySet'对象没有属性'_meta'
我已经
- 安装
django_comments
- 把它放在INSTALLED_APPS领域
settings.py
- 定义
SITE_ID = 1
- 启用站点框架
- 把
url(r'^comments/', include('django_comments.urls'))
在urls.py
但this template文件给我这个错误:
AttributeError at/
'QuerySet' object has no attribute '_meta'
我缺少什么?
这个例子可以在这里看到:http://django-contrib-comments.readthedocs.org/en/latest/example.html –
当我在'categ'中放置一个元素时,我在家里得到空白页面(这样它不是空的)。 –
对不起,我没有给你,你能解释一下吗? –