I'm trying to update my webapp2 router to take me to a different handler in a certain case here is what I have:
address: "*.com/blog/post?action=edit&id=fl2j3r0udflj3"
to keep it simple I want to just match on /blog/post?action=edit
I have this:
app = webapp2.WSGIApplication([
('/',Redirect),
(r'/blog/post?(\S+)', blog.EditPost),
('/blog/post', NewPost),
....
doesn't work.
I've tried several different things such as
- ('r/blog/post\?action=edit', blog.EditPost)
- ('r/blog/post\?action=edit(.*+)', blog.EditPost)
Nothing is working. Any ideas?
/blog/post/<id>/edit.