[google-appengine] Re: first app upload - blank page
I'm having the same issue. I have three different scripts in the same file, one which is mapped to "/", one to "/blog" and one to "/blog/ admin/" My app.yaml has the following handlers: handlers: - url: /static static_dir: static - url: /favicon.ico static_files: static/favicon.ico upload: static/favicon.ico - url: /about-me static_files: static/about-me.html upload: static/about-me.html - url: /blog script: blog.py - url: /blog/admin script: admin.py login: required - url: /blog/admin/.* script: admin.py login: required - url: /blog/.* script: blog.py - url: /.* script: site.py and site.py has: class FrontPageHandler(webapp.RequestHandler): def get(self): self.response.out.write(""" Hello """) application = webapp.WSGIApplication( [('/', FrontPageHandler)], debug=True) def main(): util.run_wsgi_app(application) if __name__ == "__main__": main() "/" Works fine on local server, shows a blank page on appengine's server. /blog and /blog/admin work fine. Please help, I've been going at this for the past two hours :( -- 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-appeng...@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.
[google-appengine] Re: first app upload - blank page
On Dec 21, 8:42 pm, Whitey wrote: > Something dumb I am sure, I have a simple app that works fine across > Safari, Chrome, Firefox on local app engine dev setup (sdk 1.3.0) when > I upload/deploy I get no error, when I access the page I get no errors > (or anything) logged but I get a blank page with a status code of 200, > have tried re-deploying, changing version numbers, deleting versions, > etc, no luck, any ideas? Thnks. You need the if __name__ == '__main__': main() clause at the end of your python file. -- 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-appeng...@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.