python - aldryn_bootstrap3 : Field defines a relation with model '...' , 未安装或抽象的错误

标签 python django twitter-bootstrap

当我在我的 virtualenv 中运行 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.

我已将 aldryn_bootstrap3 添加到我的 settings.py 中的 INSTALLED_APPS

最佳答案

Aldryn Bootstrap3 依赖 django-filer .你应该install it first :

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

你得到的错误(Field 定义了与模型"file"的关系,它要么没有安装,要么是抽象的)告诉你一些模型依赖于 Django 找不到的其他模型.

具体来说,在这种情况下,Aldryn Bootstrap3 模型依赖于在 django-filer 中定义的模型 FileImageFolder

关于python - aldryn_bootstrap3 : Field defines a relation with model '...' , 未安装或抽象的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32269695/

相关文章:

django - 如何构建 witt django-mptt 查询连接到 mptt 层次结构元素的任何后代?

css - 如何在考虑滚动条宽度的同时使用 Bootstrap 网格布局

python - 线宽与线的长度相加

python - 从 MongoDB 获取大数据的最佳方法

python在迭代时修改dict删除

python - 3D 中点和圆弧之间的距离

python - Django : migration success but not creating new table

python - 导入错误 : No module named cms when running Django with django-cms installed

javascript - Bootstrap nav-tabs 'show' 不起作用?

javascript - 如何在提交按钮上触发模式并重定向 Rails