Google应用引擎运行错误

时间:2015-07-08 01:21:24

标签: google-app-engine

当我试图在谷歌应用程序引擎上运行其中一个应用程序时,我继续获得大喊图标意味着错误。我该如何解决,所以我可以运行我的应用程序。

错误是hello-udacity

的左端

以下是错误图片的链接:https://plus.google.com/u/1/115545843446144625696/posts/aoRyoN2r2Sd?pid=6168940381509733874&oid=115545843446144625696

在main.py

import webapp2

class MainHandler(webapp2.RequestHandler):
    def get(self):
        self.response.write('Hello udacity!')

app = webapp2.WSGIApplication([('/', MainHandler)], 
                                debug=True)

在app.yaml

application: hello-udacity

version: 1

runtime: python27

api_version: 1

threadsafe: yes


handlers:

- url: /favicon\.ico


 static_files: favicon.ico

  upload: favicon\.ico


- url: .*

  script: main.app


libraries:

- name: webapp2

version: "2.5.2"

1 个答案:

答案 0 :(得分:0)

app.yaml文件使用YAML语法,因此您的app.yaml应符合这些条件。以下是更清晰的配置

application: hello-udacity
version: 1
runtime: python27
api_version: 1
threadsafe: yes

handlers:
- url: /favicon\.ico
  static_files: favicon.ico
  upload: favicon\.ico

- url: .*
  script: main.app

libraries:
- name: webapp2
  version: "2.5.2"

有关详情,请参阅开发人员文档中的about app.yaml