开发者

Handling URLs in App Engine

开发者 https://www.devze.com 2023-01-30 01:10 出处:网络
I want a particular handler \"/OldVideos\" to be in开发者_开发技巧voked when URLs which end with \".aspx\" are requested for.

I want a particular handler "/OldVideos" to be in开发者_开发技巧voked when URLs which end with ".aspx" are requested for.

How do I fit this in the app.yaml file?

thanks!


URL and file path patterns use Regular Expression syntax. So, you can write a regular expression for paths ending with .aspx such as

- url: /.*\.aspx  
    script: oldvideos.py

http://code.google.com/appengine/docs/python/config/appconfig.html#About_app_yaml

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号