Google App Engine模块的路由无效(Google App Engine module's routing is not working)
我有一个用Python编写并在Google App Engine上运行的演示应用程序。 这个程序有3个模块。 我添加了一个配置文件来配置模块的路由,但它不起作用。 这个名为dispatch.yaml的文件如下所示:
application: dotted-lexicon-638 dispatch: - url: "dotted-lexicon-638.appspot.com/" module: default - url: "dotted-lexicon-638.appspot.com/list*" module: list - url: "dotted-lexicon-638.appspot.com/logs*" module: logs
我使用“appcfg.py update_dispatch project_dir”命令部署了此文件
如果你去“ http://list.dotted-lexicon-638.appspot.com ”和“ http://logs.dotted-lexicon-638.appspot.com ”你可以看到两个模块都在工作。
我错过了什么吗?
I have a demo application written in Python and running on Google App Engine. This app has 3 modules. I added a configuration file to configure module's routing but it's not working. This file called dispatch.yaml looks like this:
application: dotted-lexicon-638 dispatch: - url: "dotted-lexicon-638.appspot.com/" module: default - url: "dotted-lexicon-638.appspot.com/list*" module: list - url: "dotted-lexicon-638.appspot.com/logs*" module: logs
I deployed this file using "appcfg.py update_dispatch project_dir" command
if you go to "http://list.dotted-lexicon-638.appspot.com" and "http://logs.dotted-lexicon-638.appspot.com" you can see that both modules are working.
Am I missing something?