Here is a portion of my app.yaml file:
handlers:
- url: /remote_api
script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
login: admin
- url: /detail/(\d)+
script: Detail.py
- url: /.*
script: Index.py
I want that capture group (the one signified by (\d)) to be available to the script Detail.py. How can I do this?
Do I need to figure out a way to access GET data from Detail.py?
Also, when I navigate to a URL like /fff, which should match the Index.py handler, I just get a blank response.
I see two questions, how to pass elements of the url path as variables in the handler, and how to get the catch-all to render properly.
Both of these have more to do with the main() method in the handler than the app.yaml
1) to pass the id in the
/detail/(\d)url, you want something like this:2) to ensure your
Index.pycatches everything, you want something like this:Hope that helps.