每当添加新代码时,App Engine空白页面

时间:2014-04-24 17:24:48

标签: python google-app-engine

所以我刚刚下载了谷歌应用引擎并正在阅读谷歌的教程,一切正常,但我突然开始得到空白页面。现在,浏览器中显示的唯一代码是默认代码和内置留言板示例。

import webapp2

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

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

这很有效。但是,如果我只在现有代码中添加一行......

def get(self):
    self.response.headers['Content-Type'] = 'text/plain' #!!!!!!!
    self.response.write('Hello, World!')

什么都没有显示。

* UPDATE

检查App Engine日志,这就是它所说的。

enter image description here

0 个答案:

没有答案
相关问题