0
我在「localhost:8080」中獲得空白頁。Google App Engine空白頁localhost:8080
遵循developers.google.com/appengine提到蟒蛇
一切工作正常,但作爲helloworld.py文件中提到的網頁上不顯示「Hello World」的過程。
import webapp2
class MainHandler(webapp2.RequestHandler):
def get(self):
self.response.out.write('Hello world!')
app = webapp2.WSGIApplication([
('/', MainHandler)
], debug=True)
和app.yaml文件是
application: engineapp
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"
你能告訴我們你的實際代碼,請?包括'app.yaml'文件。 –
您的控制檯是否顯示日誌中的任何錯誤? –
新增了app.yam文件 – user2499424