Python 不同文件夹中的不同页面

Python 不同文件夹中的不同页面,python,google-app-engine,Python,Google App Engine,我在Google App Engine上读过一些教程,在这些教程中有相同的结构:每个页面指向每个类,所有这些类在main.py中总是相同的。我想在新文件上创建新页面。因此,我: 在项目文件夹中。我创建了hello文件夹,在这个文件夹中我创建了一个简单的脚本hello.py,它有一个类名hello。例如,此文件是: class Hello(webapp2.RequestHandler): def get(self): self.response.ou

我在Google App Engine上读过一些教程,在这些教程中有相同的结构:每个页面指向每个类,所有这些类在
main.py
中总是相同的。我想在新文件上创建新页面。因此,我:

在项目文件夹中。我创建了
hello
文件夹,在这个文件夹中我创建了一个简单的脚本
hello.py
,它有一个类名
hello
。例如,此文件是:

    class Hello(webapp2.RequestHandler):
        def get(self):
            self.response.out.write('hello world')

    app = webapp2.WSGIApplication([('/hello',Hello)], debug=True)
但当我运行此应用程序时,当我指向:
localhost:port/hello
时,我将收到
404:找不到错误资源。

如果我在
app.yaml
中定义。我无法部署此应用程序:

- url: /hello
  script: hello.app
所以,请教我如何在不同的文件夹中运行不同的文件。在我的示例中,此文件中的
hello.py
hello
类。请尝试以下操作:

- url: /hello
  script: hello/hello.py

script
字段应该是处理程序所在Python文件的完整路径。

我在部署时遇到了这个错误,您能告诉我更多信息吗<虽然我已将
script:hello/hello.py
更改为
script:hello/hello.app