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

  • Home
  • SEARCH
  • 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 8297493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:26:18+00:00 2026-06-08T15:26:18+00:00

I am building an application using webapp2 in Google App Engine. How do I

  • 0

I am building an application using webapp2 in Google App Engine. How do I pass the username into the url so that when the profile button is clicked, it takes the user to “/profile/username” where “username” is specific to the user?

My current handlers:

app = webapp2.WSGIApplication([('/', MainPage),
                               ('/signup', Register),
                               ('/login', Login),
                               ('/logout', Logout),
                               ('/profile', Profile)
                               ],
                              debug=True)

the Profile class:

class Profile(BlogHandler):
    def get(self):
        email = self.request.get('email')
        product = self.request.get('product')
        product_list = db.GqlQuery("SELECT * FROM Post ORDER BY created DESC LIMIT 10")
        self.render('profile.html', email = email, product = product, product_list = product_list)

I am trying to send each user to a Profile page that contains information in my database specific to them. Thanks

  • 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-08T15:26:19+00:00Added an answer on June 8, 2026 at 3:26 pm

    One possible solution would be to simply have one URL, i.e., /profile. The corresponding handler would render the response with data coming from the logged-in user.

    If you really want to have URLs like /profile/username, you could define a route:

    app = webapp2.WSGIApplication([('/', MainPage),
                                   ('/signup', Register),
                                   ('/login', Login), 
                                   ('/logout', Logout),
                                   ('r/profile/(\w+)', Profile)
                                  ],
                                  debug=True)
    

    and access the username in your handler:

    class Profile(BlogHandler):
        def get(self, username):
    

    But depending on your application, you might want to make sure only the logged-in user has access to its /profile/username by adding a check somewhere in the handler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a web application on Google App Engine that requires users to
I'm building an application using Google App Engine. The application consists of several servlets,
I'm building an application using Google app engine with python, and I'm stuck with
I'm building my new website using app-engine with python and webapp2 I'm having hard
I'm currently building a Python webapp on the Google App Engine and I want
I am building an application using OpenCV that uses the webcam and runs some
I'm building an application using gevent. My app is getting rather big now as
I'm building an application using WPF that will be a designer of sorts, meaning,
I'm building an application using jsp's, servlets, and all that fun stuff. Right now,
I am building an application using MVC3, Razor view engine, Repository Pattern with Unit

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.