开发者

Handling URLs in App Engine

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜