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 webapp development problem that I've developed one solution for, but am
Our design has one jvm that is a jboss/webapp (read/write) that is used to
This a bit of strange one.... We have an internal web app that runs
I've inherited a VB.net project that generates 2 DLLS: one for the web app,
I fill a collection one single time when my J2EE webapp starts. Then, several
I'm building a JSF+Facelets web app, one piece of which is a method that
I'm refurbishing a simple web-app that our field techs use. One of my goals
I'm porting a Forms app to a VB.NET web app, and one of the
One of those classic programming interview questions... You are given two marbles, and told
One of my biggest typographical frustrations about HTML is the way that it mangles

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.