Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python aldryn#u bootstrap3出错:字段定义了与模型的关系'';,它不是未安装的,就是抽象的_Python_Django_Twitter Bootstrap - Fatal编程技术网

Python aldryn#u bootstrap3出错:字段定义了与模型的关系'';,它不是未安装的,就是抽象的

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',

在我的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\u bootstrap3
添加到
已安装的应用程序中。py

aldryn bootstrap3取决于。你应该:

您得到的错误(字段定义了与模型“File”的关系,该文件未安装或是抽象的)告诉您,有些模型依赖于Django找不到的其他模型


具体来说,在这种情况下,Aldryn Bootstrap3型号取决于django filer中定义的型号
文件
图像
文件夹

您是否已将django filer添加到已安装的应用程序中?不,我试试看。有必要安装“南方”吗?哇哦!!它起作用了!!我已添加文件管理器并正常迁移!
INSTALLED_APPS = [
    ...
    'filer',
    'mptt',
    'easy_thumbnails',
    ...
]