I'm trying google app engine with python27.
handlers:
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
- url: /hello
script: helloworld.app
- url: /.*
script: main.app
helloworld.py and main.app have the same code from the offical document with little difference (response string).
import webapp2
class MainHandler(webapp2.RequestHandler):
def get(self):
self.response.write('Hello world!!!')
app = webapp2.WSGIApplication([
('/', MainHandler)
], debug=True)
My result: 1. "~", the response comes from "main.app". 2. "~/favicon.ico", the response comes from "favicon.ico". 3. "~/hello", the response is "404". 4. "~/something", the response is "404".
Sorry, to post this question, "~" for "http://localhost:8080"
.
Why 3 and 4 cannot be handled? Is there something wrong?