安装django内置comments评论系统出错,求解答!!

2013-11-05 00:54:53 +08:00
 click
完全按照官方的方法做,
第一步,在 settings 文件中,INSTALLED_APPS 项添加 'django.contrib.comments', 这步没问题

但第二步python manage.py syncdb时系统提示错误:
CommandError: One or more models did not validate:
comments.comment: 'site' has a relation with model <class 'django.contrib.sites.
models.Site'>, which has either not been installed or is abstract.

求解答!!
3800 次点击
所在节点    Django
1 条回复
mozillazg
2013-11-07 12:43:55 +08:00
INSTALLED_APPS 追加 'django.contrib.sites'

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/88040

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX