I’m trying to figure something out with the app.yaml file.
How do I get “nh” and “dover” out of my url: http://www.mysite.com/boats/nh/dover
I’m assuming would would do something like:
- url: /boats/<state>/<city>
script: boats.py
and then be able to get the variables somehow but I’ve had a hard time finding documentation for this.
Thanks in advance
Regular expression groups in app.yaml don’t get passed to webapps directly. But if you’re using the webapp framework, groups in its routing regular expressions do get passed to webapps. For example:
app.yaml:
boats.py: