-
Website
http://www.benjamingolub.com/ -
Original page
http://www.benjamingolub.com/e/remove-trailing-slash-on-app-engine -
Subscribe
All Comments -
Community
-
Top Commenters
-
Yuvi Panda
2 comments · 6 points
-
EricaJoy
2 comments · 4 points
-
Daniel Ha
1 comment · 405 points
-
m1ck
4 comments · 1 points
-
golfman_story
2 comments · 3 points
-
-
Popular Threads
-
HI -
Benjamin Golub's Blog
1 week ago · 2 comments
-
HI -
Benjamin Golub's Blog
For example, I have (r"/entry/([^/]+)", views.EntryHandler)
If I hit something like "/entry/whatever/" I will get a 404
So in order to this code to work, we need a ("/.*", WhateverHandler), at the end of our main to get every non-catched request, and of course, WhateverHandler will inherit from BaseHandler.
Am I correct?
then you don't need that. Take a look at my blog's code for how this works:
http://github.com/bgolub/blog/blob/master/main.py