在localhost中,它运行良好,但是在尝试将其部署到aws(eb deploy)时出现以下错误:

时间:2019-04-01 07:35:19

标签: python django amazon-elastic-beanstalk

INFO: Deploying new version to instance(s).                         
ERROR: [Instance: i-0a71c104c0eea1e7c] Command failed on instance. Return code: 1 Output: (TRUNCATED)...on/run/venv/local/lib/python2.7/site-packages/django/apps/config.py", line 94, in create
module = import_module(entry)
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named import_export. 

1 个答案:

答案 0 :(得分:1)

事实证明,我需要在我的requirements.txt文件中添加django-import-export