0

I am a really beginner of google app engine and trying to figure out how to create a link to the other pages. Like after the user sign in, I want that there is link button that can redirect the users to some other pages I created .Thank you so much

1
  • 2
    Sounds like you need to learn a bit about HTML links first Commented Jan 30, 2011 at 21:00

3 Answers 3

2

Do you already understand how to create pages? If so, then linking between pages is just basic HTML:

<a href="/path/to/some/page">link text</a>
Sign up to request clarification or add additional context in comments.

Comments

1

To create a link to the other pages in Google app engine using python: For example: hyperlink: <a href="/addproduct"> where /addproduct refer to the name of the class in .py file, Here is how the addproduct class is defined in .py file

class addproduct(webapp2.RequestHandler):
    def get(self):
        template = JINJA_ENVIRONMENT.get_template('adminaddproduct.html')
        self.response.write(template.render())

Comments

0

Redirect is easy:

self.redirect("/home")

Example app also shows how users are redirected to the app after signing in.

1 Comment

For future reference and to improve the quality of my answers, maybe someone can explain what is so bad with this answer that it needed to be downvoted? The question asks about how redirect users after they sign in.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.