0
index
方法是任何TurboGears控制器类的起点。网址Turbogears。编写控制器方法
localhost:8080
localhost:8080/
localhost:8080/index
中的每一个映射到RootController.index()
方法。
我该如何映射localhost:8080
和localhost:8080/
到.index()
但localhost:8080/index
和localhost:8080/index.html
到._lookup()
?
欢迎来到Stack Overflow!我们鼓励你[研究你的问题](http://stackoverflow.com/questions/how-to-ask)。如果你已经[尝试了某些东西](http://whathaveyoutried.com/),请将其添加到问题中 - 如果没有,请先研究并尝试您的问题,然后再回来。 – 2012-09-28 07:02:00