2015-08-28 18 views
3

當我在我的virtualenv運行migrate.py,我收到以下錯誤:錯誤與aldryn_bootstrap3:字段定義與模型的關係「...」,這是未安裝,或者是抽象的

$ 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中添加aldryn_bootstrap3INSTALLED_APPS

+1

您是否將django-filer添加到安裝的應用程序中? http://django-filer.readthedocs.org/en/latest/installation.html#configuration –

+0

不,我會試試看。是否需要安裝「南」? –

+0

Wohoooo !!有用!!我已經添加了filer並正常遷移! –

回答

3

Aldryn Bootstrap3取決於django-filer。您應該install it first

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

你所得到的錯誤(字段定義與模型「文件」的關係,這是未安裝,或者是抽象)告訴你一些模型依賴於其他模型Django找不到。

具體而言,在這種情況下,Aldryn Bootstrap3型號取決於在django-filer中定義的型號FileImageFolder

相關問題