当我在我的 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 中定义的模型 File
、Image
和 Folder
。
关于python - aldryn_bootstrap3 : Field defines a relation with model '...' , 未安装或抽象的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32269695/