I want to create a temporary page where the browser lingers for a few seconds and is then redirected to another page. Working on python on Google App Engine. I thought the below should work(I am a total novice at this) but clearly it doesn't.
class TempPage(PageHandler):
def get(self):
self.response.write("You will be redirected to the Front page.")
time.sleep(3)
self.redirect('/')
PageHandler inherits from webapp2.RequestHandler.
Can someone please tell me what should be done.
Thanks