Is that possible to redirect to another url with a delay in GAE? I know I can use JavaScript for this purpose, but may be there is a way to do delayed redirection without it?
Now I use self.redirect("/")
from GAE tutorial.
Thanks.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
You can use the
<meta http-equiv="refresh" content="x;url=http://yoururl/">
tag where x is the number of seconds to wait before redirect. This tag would go in<head>
part of the generated page.import time
at the top of your module and do atime.sleep(0.5)
before you do a self.redirect call. The sleep argument can take a floating point value of number of seconds to delay. Just make sure that you don't exceed 30 seconds of delay as GAE expects that every request be handled within that otherwise it will be interrupted.