Python aldryn#u bootstrap3出错:字段定义了与模型的关系'';,它不是未安装的,就是抽象的
在我的virtualenv中运行Python aldryn#u bootstrap3出错:字段定义了与模型的关系'';,它不是未安装的,就是抽象的,python,django,twitter-bootstrap,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',
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\u bootstrap3
添加到已安装的应用程序中。py
aldryn bootstrap3取决于。你应该:
您得到的错误(字段定义了与模型“File”的关系,该文件未安装或是抽象的)告诉您,有些模型依赖于Django找不到的其他模型
具体来说,在这种情况下,Aldryn Bootstrap3型号取决于django filer中定义的型号文件
、图像
和文件夹
。您是否已将django filer添加到已安装的应用程序中?不,我试试看。有必要安装“南方”吗?哇哦!!它起作用了!!我已添加文件管理器并正常迁移!
INSTALLED_APPS = [
...
'filer',
'mptt',
'easy_thumbnails',
...
]