On Feb 17, 5:11 pm, John <[email protected]> wrote:
> I'm trying to do the following:
>
> In app.yaml:
>
> - url: /product/id/([0-9]*)/
> script: product.py?id=\1
>
> but its not working, seems to ignore the query string. Is there any
> way I can get this to work?
unless you literally have scripts named "product.py?id=25" and such,
this is meaningless; the app.yaml simply maps urls to scripts, and
adding "?id=whatever" to the end of a script doesn't do anything
useful. The only reason to use regex groupings in app.yaml like that
is to call different scripts based on the parts of the URL. If you
always want to use the same script, map the URL to the desired
behavior in the script itself, as Barry suggests.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---