I work in Google App Engine, I want to redirect the browser to a specific URL that is retrieved from the data store.
The saved URL model is similar to
class WebReference(db.Model): website = db.StringProperty() webreferecnce=db.StringProperty()
My code
query = db.GqlQuery("SELECT * FROM WebReference where webreferecnce = '10'") results = query.fetch(1) for r in results: self.redirect(r.website)
I want to redirect the URL to a website that has web number 10. This is done on the local host, but not after loading. how can i achieve this
user1847145
source share