simply way to add another webapp framework to my project.
- by zjm1126
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 ?