Your WSGIPath refers to a file that does not exist

后端 未结 5 1815
温柔的废话
温柔的废话 2020-12-09 01:16

I\'m trying to upload my Flask application to AWS however I receive an error on doing so:

Your WSGIPath refers to a file that does not exist.

5条回答
  •  孤城傲影
    2020-12-09 01:24

    In my case trying many solutions didn't solve the issue but changing WSGIPath from

    option_settings:
      "aws:elasticbeanstalk:container:python":
        WSGIPath: project_name/application_name.py
    

    to

    option_settings:
          "aws:elasticbeanstalk:container:python":
            WSGIPath: project_name.wsgi
    

    worked like a charm. Here is the file structure:

    ├── manage.py
    ├── mysite ***
    │   ├── __init__.py
    │   ├── settings.py
    │   ├── urls.py
    │   └── wsgi.py ***
    ├── myvenv
    │   └── ...
    └── requirements.txt
    

提交回复
热议问题