【发布时间】:2010-02-07 22:29:13
【问题描述】:
我在我的一个模板中收到此错误,但似乎无法找出问题所在。
`NoReverseMatch: Reverse for 'getimagefile'
with arguments '(12L, 'afN9LRzESh4I9CGe6tFVoA==\n')' and
keyword arguments '{}' not found.
我的 urls.py 包含:
urlpatterns = patterns('myproj.myapp.views',
url(r'^getimage/(?P<extractedcontent_id>\d+)/(?P<encpw>.*)/$','getimagecontent',name='getimagefile'),
)
我的 views.py 包含:
def getimagecontent(request,extractedcontent_id,encpw):
........
最后,给我错误的模板包含以下行:
<li class="active"><img src="{% url getimagefile img,encpw %}" title=""/></li>
【问题讨论】: