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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:32:56+00:00 2026-05-15T04:32:56+00:00

one webapp project has many url and i have to change this: (‘/addTopic’, AddTopic),

  • 0

one webapp project has many url

and i have to change this:

('/addTopic', AddTopic),
('/delTopic', DeleteTopic),
('/addPost', AddPost),
('/delPost', DeletePost),

to this:

('/tribes/addTopic', AddTopic),
  ('/tribes/delTopic', DeleteTopic),
  ('/tribes/addPost', AddPost),
  ('/tribes/delPost', DeletePost),

but ,if i add this to my project ,i have to change the url in every py file or html file ,

in django

it can be this :

urlpatterns = patterns('',
    (r'^articles/2003/$', 'news.views.special_case_2003')),
)

it is easy to add the url of ‘news’ to my peoject,

but does webapp has this ?

thanks

updated:

(1) my main page url is :

  ('/', MainPage),
  ('/sign', Guestbook),

(2) the url of a webapp project that i want to add is :

('/', MainPage),
('/logout', LogoutPage),
('/login_response', LoginHandler),

and i want to change (1) to this:

('/', MainPage),
('/sign', Guestbook),

('/aa/', p2.MainPage),
('/aa/logout', p2.LogoutPage),
('/aa/login_response', p2.LoginHandler),

so i have to change so many url like / to /aa/ , or change /logout to /aa/logout

in py file and html file , that is a hard work

so any simple way to do 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-05-15T04:32:56+00:00Added an answer on May 15, 2026 at 4:32 am

    I think I understand what you’re trying to do. URL routing is pretty flexible. When the request comes in, the URL is matched against your list of handlers to determine which python script is invoked. If you’re using webapp, the URL gets matched against a second list of regexes to determine which class handles the request.

    Let’s say your app.yaml looks like this:

    handlers:
    
    - url: /foo/.*
      script: foo.py
    
    - url: /bar/.*
      script: bar.py
    

    Inside bar.py, you have this:

    ('/[^/]+/', MainPage),
    ('/[^/]+/logout', LogoutPage),
    ('/[^/]+/login_response', LoginHandler)
    

    Those regex prefixes should match URLs that start with a slash, are followed by one or more characters that are not a slash (any subdirectory name), and then have another slash followed by the rest of the URL.

    If a request comes in for /bar/logout, app.yaml will match it to the /bar/.* regex and pass it to bar.py, and bar.py will match it to the /[^/]+/logout regex and pass it to LogoutPage.

    If you decide you want the subdirectory to be “baz” instead of “bar”, you can change the url in app.yaml and potentially leave the rest intact.

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

Sidebar

Related Questions

I have a maven3 webapp (war) project that has 2 dependencies. One is a
multiple webapp running on same tomcat using same jvm. sometime, one webapp that have
I have small project consisting of one maven project and two maven modules. One
I have a single code file for my Google App Engine project. This simple
I am working on a webapp that has three entities: User, Project, and Todo.
Nothing I've found has been able to help me solve this one specific case.
I have an OOD system for my current webApp that every element has an
In a webapp I'm using several filters and in one of the filter I'm
Can any one list out the tips to tune JSF WebApp @ its best.
I am trying to write a webapp, where one of the functionality is to

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.