V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
click
V2EX  ›  Django

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

  •  
  •   click · 2013-11-05 00:54:53 +08:00 · 3784 次点击
    这是一个创建于 3827 天前的主题,其中的信息可能已经有所发展或是发生改变。
    完全按照官方的方法做,
    第一步,在 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.

    求解答!!
    1 条回复    1970-01-01 08:00:00 +08:00
    mozillazg
        1
    mozillazg  
       2013-11-07 12:43:55 +08:00
    INSTALLED_APPS 追加 'django.contrib.sites'
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5117 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:43 · PVG 17:43 · LAX 02:43 · JFK 05:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.