osx - Google App Engine Launcher is not running my hello world for Python Mac -
i have tried existing resources no avail.
here app.yaml code:
version: 1 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /.* script: helloworld.app
here webapp2 code:
import webapp2 class mainpage(webapp2.requesthandler): def get(self): self.response.headers['content-type'] = 'text/plain' self.response.write('hello, world!') app = webapp2.wsgiapplication([ ('/', mainpage), ], debug=true)
all in hello_world directory. proceed add existing application , point hello_world directory helloworld.py (webapp2) script , app.yaml code living. hit run on google app engine , stays loading, never completes. therefore, http://localhost:8080/
page never loads.
you're missing application:
line in app.yaml
.
you're gonna need list 3rd party webapp2 in libraries section, this:
libraries: - name: webapp2 version: "2.5.2"
Comments
Post a Comment