Pylons/Routes Did url_for() change within templates?
Posted
by Charles Merram
on Stack Overflow
See other posts from Stack Overflow
or by Charles Merram
Published on 2010-03-24T23:46:26Z
Indexed on
2010/03/24
23:53 UTC
Read the original article
Hit count: 407
I'm getting an error:
GenerationException: url_for could not generate URL. Called with args: () {}
from this line of a mako template:
<p>Your url is ${h.url_for()}</p>
Over in my helpers.py, I do have:
from routes import url_for
Looking at the Routes-1.12.1-py2.6.egg/routes/util.py, I seem to go wrong about line it calls _screenargs().
This is simple functionality from the Pylons book. What silly thing am I doing wrong? Was there a new url_current()? Where?
© Stack Overflow or respective owner