aldryn_bootstrap3出现错误:字段定义了与模型“...”的关联,该模型未安装或为抽象模型。

3
当我在我的虚拟环境中运行 migrate.py 时,我收到了以下错误提示:
$ python manage.py migrate aldryn_bootstrap3
CommandError: System check identified some issues:

ERRORS:
aldryn_bootstrap3.Boostrap3ButtonPlugin.link_file: (fields.E300) Field defines a relation with model 'File', which is either not installed, or is abstract.
aldryn_bootstrap3.Boostrap3ImagePlugin.file: (fields.E300) Field defines a relation with model 'Image', which is either not installed, or is abstract.
aldryn_bootstrap3.Bootstrap3CarouselSlideFolderPlugin.folder: (fields.E300) Field defines a relation with model 'Folder', which is either not installed, or is abstract.
aldryn_bootstrap3.Bootstrap3CarouselSlidePlugin.image: (fields.E300) Field defines a relation with model 'Image', which is either not installed, or is abstract.
aldryn_bootstrap3.Bootstrap3CarouselSlidePlugin.link_file: (fields.E300) Field defines a relation with model 'File', which is either not installed, or is abstract.
aldryn_bootstrap3.Bootstrap3FilePlugin.file: (fields.E300) Field defines a relation with model 'File', which is either not installed, or is abstract.

我已经在我的settings.py中的INSTALLED_APPS中添加了aldryn_bootstrap3


1
你是否将django-filer添加到已安装的应用程序中?http://django-filer.readthedocs.org/en/latest/installation.html#configuration - Andrea Corbellini
不,我会尝试一下。需要安装“south”吗? - St Pavel
哇喔喔!!它运行了!!我已经添加了过滤器并正常迁移! - St Pavel
1个回答

4

Aldryn Bootstrap3依赖于django-filer。您应该先安装它

INSTALLED_APPS = [
    ...
    'filer',
    'mptt',
    'easy_thumbnails',
    ...
]

您所遇到的错误 (Field defines a relation with model 'File', which is either not installed, or is abstract) 告诉您,一些模型依赖于 Django 找不到的其他模型。
具体而言,在这种情况下,Aldryn Bootstrap3 模型依赖于在 django-filer 中定义的模型 FileImageFolder

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接