我想创建一个临时页面,浏览器在那里逗留几秒钟,然后重定向到另一个页面。在Google App Engine上使用python。我认为下面应该工作(我是这个总新手),但显然它没有。临时页面,而谷歌应用引擎上的重定向
class TempPage(PageHandler):
def get(self):
self.response.write("You will be redirected to the Front page.")
time.sleep(3)
self.redirect('/')
PageHandler继承自webapp2.RequestHandler。
有人可以告诉我应该做什么。
感谢
这是http://stackoverflow.com/questions/5203378/gae-redirection-with-a-delay – OJFord