2013-09-10 64 views
0

我正在使用Google App Engine GUI。不确定我做错了什么,因为我在跟随谷歌在这一领域的领先地位。在GUI中,应用程序在管理端口8000上运行,并在端口8080上监听。当我转到localhost:8080时,Chrome中出现“服务器错误”。这是防火墙问题还是GAE问题?GAE教程 - 浏览'本地主机:8080'给我服务器错误?

helloudacity.py

import webapp2 

class mainPage(webapp2.RequestHandler): 

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


application = webapp2.WSGIApplication([ 
('/', MainPage), 
], debug=true) 

的app.yaml

application: your-app-id 
version: 1 
runtime: python27 
api_version: 1 
threadsafe: true 

handlers: 
- url: /.* 
    script: helloudacity.application 

回答

2

你忘了利用炫魅在你的路由和调试=真正为True。如果你看错误控制台,大多数错误应该在那里。

1

尝试将debug=true更改为debug=True

Python上的布尔值是TrueFalse

Google´s sample是对的。

相关问题