I use the Google engine to work with python and webapp2, and I cannot find a way to simply redirect to an external website using an absolute uri.
For instance:
class Landing(BaseHandler): def get(self): self.render("landing.html") def post(self): name=self.request.get("name") if name == "yes" self.redirect("/") else: self.redirect("http://example.com") **This is the problem as I want to redirect to an absolute url.
Self.redirect always redirects to a relative URL. How can I redirect to an absolute URL? I think it should be easy, but I canβt find a way.
source share