Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8882781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:39:47+00:00 2026-06-14T20:39:47+00:00

I am working in google app engine , i want to redirect browser to

  • 0

I am working in google app engine ,
i want to redirect browser to the specific URL which is retrived from Datastore.

The model of stored URL is like,

class WebReference(db.Model):
    website = db.StringProperty()
    webreferecnce=db.StringProperty() 

My code is ,

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 the website who have webreference number 10.
This is running at localhost but not after uploading.
how can i achieve this ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:39:48+00:00Added an answer on June 14, 2026 at 8:39 pm

    Try this one , this is worked for me, dont forget to convert url in string like str(YourURLgoesHere)

    result = WebReference.gql("WHERE webreferecnce= :1", parameter)
        for record in result.run(limit=1):
            self.redirect(str(record.website))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a google app engine project using python. I want to
I'm developing an application for Google App Engine which uses BigTable for its datastore.
I'm trying to combine two Google App Engine datastore results. Because I then want
To preface, I'm working with Google App Engine which does not allow JOINS or
I am working with Google App Engine and Python. I have a model with
I am trying to get Django 1.1 working on Google App Engine. I followed
I'm working in the Google App Engine environment and programming in Python. I am
I'm working on a Google App Engine program that will require some basic spell
I've got an app in Google App Engine that was working fine. I realized
I am working on a web service servlet running on Google App Engine using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.