0

我正在尝试安装 django-filer。但是当我运行时,manage.py migrate我得到AttributeError: 'Manager' object has no attribute '_inherited'。我不知道那是什么意思。(我使用 Heroku 入门模板https://github.com/heroku/heroku-django-template开始了这个项目)

我最初以为我可能忘记安装 JPEG 和 ZLIB,但据我了解,它们是自 Pillow 3.0 以来的默认设置。

$ pip freeze
dj-database-url==0.4.1
Django==1.10.4
django-filer==1.2.5
django-mptt==0.8.7
django-polymorphic==1.0.2
easy-thumbnails==2.3
gunicorn==19.6.0
psycopg2==2.6.2
whitenoise==3.2
Pillow==4.0.0

设置.py

INSTALLED_APPS = [
    ...
    'whitenoise.runserver_nostatic',
    'django.contrib.staticfiles',
    'easy_thumbnails',
    'filer',
    'mptt',
     ...
]
4

2 回答 2

1

对于 Django 1.10,您应该django-polymorphic==1.3.1按照 django-filter “安装和配置”指南中的说明使用。它帮助我让 django-filter 与 Django 1.10 版本一起工作。

于 2018-10-12T22:25:31.940 回答
0

django-filer 1.2.5 在 Django 1.10 下不起作用

他们正在开发支持 Django 1.10 的 1.2.6 版本

https://github.com/divio/django-filer/milestone/20?closed=1

这是具体问题https://github.com/divio/django-filer/issues/899

于 2017-01-05T10:11:46.613 回答