I am working with Flask 0.9. I have experience with Google App Engine.
In GAE, the url match patterns are evaluated in the order they appear, first come first serve. Is it the same case in Flask?
In Flask, how to write a url match pattern to deal with all other unmatched urls. In GAE, you only need to put
/.*
in the end, like:('/.*', Not_Found)
. How to do the same thing in Flask since Flask wont support Regex.
If you need to handle all urls not found on server — just create 404 hanlder:
This works for your second issue.
path
will catch everything until the end. More about the variable converters.