由于找不到模块,Pythonywhere上的WSGI配置失败

由于找不到模块,Pythonywhere上的WSGI配置失败,python,flask,pythonanywhere,Python,Flask,Pythonanywhere,我目前正试图将我的python/flask应用程序部署到Pythonywhere,但目前仍停留在WSGI配置步骤上。这是我的密码: import sys # ## The "/home/azanbade" below specifies your home ## directory -- the rest should be the directory you uploaded your Flask ## code to underneath the home directo

我目前正试图将我的python/flask应用程序部署到Pythonywhere,但目前仍停留在WSGI配置步骤上。这是我的密码:

import sys
#
## The "/home/azanbade" below specifies your home
## directory -- the rest should be the directory you uploaded your Flask
## code to underneath the home directory.  So if you just ran
## "git clone git@github.com/myusername/myproject.git"
## ...or uploaded files to the directory "myproject", then you should
## specify "/home/azanbade/myproject"
path = '/home/azanbade/path/to/Word-finder'
if path not in sys.path:
    sys.path.append(path)
#
from app import app as application  # noqa
#
# NB -- many Flask guides suggest you use a file called run.py; that's
# not necessary on PythonAnywhere.  And you should make sure your code
# does *not* invoke the flask development server with app.run(), as it
# will prevent your wsgi file from working.
在我尝试运行应用程序之前,一切看起来都很好。我继续收到此错误消息,“ModuleNotFoundError:没有名为'app'的模块”

下面是我的根目录和服务器(这是我的应用程序的主文件)的照片: ,


我的配置格式正确吗?

您必须确保
路径指向应用程序的正确路径

path = '/home/<your-username>/<path-to-your-app-folder>'
path='/home/'