import webapp2
from views import MainPageNote, CreateNote, DeleteNote, EditNote, \
MainPage, CreateOwner, DeleteOwner, EditOwner
app = webapp2.WSGIApplication([
('/', MainPage),
('/createowner', CreateOwner),
('/editowner', EditOwner),
('/deleteowner', DeleteOwner)
('/note', MainPageNote),
('/create', CreateNote),
('/edit/([\d]+)', EditNote),
('/delete/([\d]+)', DeleteNote)
],
debug=True)
I don’t know how to ask this question more efficiently because I don’t know the terminology.
Where can I learn about the importance of the sequence of lines in the web app list and actually designing the list? Most of the ‘/…owner’ type items will include “?ID=…” trailers, so I am not even sure this system will work. For context, I am working on developing the demo app described here
I assume that all of the lefthand items in the list are “regular expressions”, but I don’t the rules for ordering the sequence.
I think you are looking for webapp2 URL routing