通过 web2py 在线书籍 http://web2py.com/book/default/chapter/04#URL更新默认控制器和功能看起来非常简单。这是我在 myapplication 的 routes.py 中所做的
default_application = "myapplication"
default_controller = "mycontroller"
default_function = "home"
BASE =''
routers = dict(
BASE = dict(
default_application = "myapplication",
default_controller = "mycontroller",
default_function = "home",
)
)
但它没有用。我错过了什么?
谢谢