Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo 跑不起来 #8

Open
upfour opened this issue Jan 4, 2021 · 1 comment
Open

demo 跑不起来 #8

upfour opened this issue Jan 4, 2021 · 1 comment

Comments

@upfour
Copy link

upfour commented Jan 4, 2021

win10 x64
python 3.7.5 x86

pip list
asgiref 3.3.1 defusedxml 0.6.0 diff-match-patch 20200713 Django 3.0 django-ckeditor 6.0.0 django-crispy-forms 1.10.0 django-formtools 2.2 django-import-export 2.5.0 django-js-asset 1.2.2 django-reversion 3.0.8 et-xmlfile 1.0.1 future 0.18.2 httplib2 0.18.1 jdcal 1.4.1 MarkupPy 1.14 odfpy 1.4.1 openpyxl 3.0.5 pip 20.2.4 pytz 2020.5 PyYAML 5.3.1 setuptools 51.0.0 six 1.15.0 sqlparse 0.4.1 tablib 3.0.0 wheel 0.35.1 xlrd 2.0.1 XlsxWriter 1.3.7 xlwt 1.3.0
复制xadmin 到demo目录

python manage.py makemigrations时提示
File "D:\webroot\xadmin_bugfix\demo_app\xadmin\plugins\importexport.py", line 48, in <module> from import_export.admin import DEFAULT_FORMATS, SKIP_ADMIN_LOG, TMP_STORAGE_CLASS ImportError: cannot import name 'SKIP_ADMIN_LOG' from 'import_export.admin' (D:\Envs\testxadmin\lib\site-packages\import_export\admin.py)

环境是新建的

@upfour
Copy link
Author

upfour commented Jan 4, 2021

django-import-export 换为2.0就对了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant