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 6730337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:23:48+00:00 2026-05-26T10:23:48+00:00

How can I understand which page user is looking for, if they should be

  • 0

How can I understand which page user is looking for, if they should be defined in the url like:

http://mysite.appspot.com/something/something-else/      - this is page1
http://mysite.appspot.com/something/something-else/page1 - page1 also
http://mysite.appspot.com/something/something-else/page2 - page2
http://mysite.appspot.com/something/something-else/pageN - pageN

Can I define that with WSGIApplication / app.yaml?

  • 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-05-26T10:23:49+00:00Added an answer on May 26, 2026 at 10:23 am

    Assuming that you want to use the same handler regardless of page, you can treat part of the path as your page variable.

    class MainPage(webapp.RequestHandler):
        def get(self, page='page1'):        
            self.response.headers['Content-Type'] = 'text/plain'
            self.response.out.write('Hello, World! Welcome to %s.' % page)
    
    application = webapp.WSGIApplication([('/something/something-else/', MainPage),
                                        ('/something/something-else/([^/]+)', MainPage)],
                                                                             debug=True)
    
    def main():
        run_wsgi_app(application)
    
    if __name__ == "__main__":
        main()
    

    app.yaml:

    application: helloworld
    version: 1
    runtime: python
    api_version: 1
    
    handlers:
    - url: /something/something-else/.*
      script: helloworld.py
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a student looking for resources which can help me further understand how to
I have a page which displays a form that a logged-in user can use
Can some one please guide me to understand which jar file i need to
I understand the IOC concept, which we can mix-and-match different classes using wiring. Every
I have a .exe app which I want to understand better - I can
Which algorithm does the JavaScript Array#sort() function use? I understand that it can take
I have tricky problem which I can't completely understand. It's jQuery tabs with cookie
After following: https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview I can sign up a user via Facebook. But I'm struggling
I would like to understand how I can run client-side javascript after an update
I can understand that imposing a minimum length on passwords makes a lot of

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.