In dev_appserver
class MainPage(webapp.RequestHandler):
def get(self):
self.response.out.write("Hello MainPage")
class TestPage(webapp.RequestHandler):
def get(self):
# 10 seconds
i = 1
while True:
if i == 10:
break
time.sleep(1)
i = i + 1
application = webapp.WSGIApplication([
('/', MainPage)
('/test10', TestPage),
], debug=True)
def main():
wsgiref.handlers.CGIHandler().run(application)
#run_wsgi_app(application)
if __name__ == "__main__":
main()
I don't understand. I go to http://localhost:8080/test10 and go to
http://localhost:8080/, but MainPage not response. After 10 seconds,
MainPage response "Hello MainPage" and TestPage response. GAE
dev_appserver doesn't support multiple request?
How I test multiple AJAX requests? I will deploy to GAE server for
testing? It took too long!!!
Demo image:
http://picasaweb.google.com/blockn102/GoogleAppEngineDev_appserverProblem#5496849277531050578
http://stackoverflow.com/questions/3284196/gae-wsgiapplication-and-multiple-request
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.