我收到一个错误:
GenerationException: url_for could not generate URL. Called with args: () {}
来自 mako 模板的这一行:
<p>Your url is ${h.url_for()}</p>
在我的 helpers.py 中,我确实有:
from routes import url_for
查看 Routes-1.12.1-py2.6.egg/routes/util.py,我似乎对它调用 _screenargs() 的行有误。
这是 Pylons 书中的简单功能。我做错了什么傻事?有新的 url_current() 吗?在哪里?