我刚刚在Django中设置了Wagtail CMS,当我运行django-admin runserver
时,我收到以下错误:
ERRORS:
wagtaildocs.Document.tags: (fields.E300) Field defines a relation with model 'Tag', which is either not installed, or is abstract.
wagtailimages.Image.tags: (fields.E300) Field defines a relation with model 'Tag', which is either not installed, or is abstract.
System check identified 2 issues (0 silenced).
答案 0 :(得分:3)
根据手册,您需要taggit
库:http://wagtail.readthedocs.org/en/latest/advanced_topics/settings.html?highlight=installed_apps#apps-settings-py
我猜你忘了安装它:)
答案 1 :(得分:0)
所以发生的事情是我忘记将'taggit'
放入我的settings.py文件的INSTALLED_APPS
部分。请参阅我提交的问题here。