Do you have these lines at the end of your handler.py file if __name__ == "__main__": main()
2009/7/18 David Goehrig <d...@nexttolast.com>: > Google AppEngineers, > I'm experiencing a prolonged annoyance that started with my second google > app engine app. What is happening is that the handler for the main page > serves largely static content. > class MainHandler(webapp.RequestHandler): > def get(self): > self.response.headers['Content-Type'] = 'text/html' > self.response.out.write(""" > <html><head><title>Hello world</title></head> > <body>Hello world</body></html> > "'"") > and it is registered and every time you first load the page, it logs: > > INFO 2009-07-17 22:14:11,414 dev_appserver.py:2982] "GET / HTTP/1.1" 200 > - > > INFO 2009-07-17 22:14:11,423 dev_appserver_index.py:212] Updating > /Users/dave/Code/phosphor-app/index.yaml > > But it returns 0 bytes of data. Then the second time you call the page: > > INFO 2009-07-17 22:24:33,228 dev_appserver.py:2982] "GET / HTTP/1.1" 200 > - > > And the request has all of the proper headers and data output. All > subsequent requests after the first work too. > > When you deploy the app, the first time you hit the site, it comes up blank, > but the subsequent reloads work. > > Does anyone have any idea of what could be the issue? This app is currently > no more than a simple helloworld example at the moment and there is no other > content. > > -- > -=-=-=-=-=-=-=-=-=-=- http://blog.dloh.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---