我用过以下tutorial https://django-import-export.readthedocs.io/en/latest/installation.html。我使用了命令pip install django-import-export
,然后添加到“已安装的应用程序”部分。
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'import_export',
'frontend',
'userauth',
'methods',
]
当我跑步时python manage.py collectstatic
我收到错误ModuleNotFoundError: No module named 'import_export'
通过在命令提示符中写入此命令来安装 import_export 模块
pip install --user django-import_export
or use
pip install django-import_export
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)