cat
特定の URL にリダイレクトしているときに、変数 ( ) をビューに渡そうとしています。のようなものを使用してreverse
:
return HttpResponseRedirect(reverse('show_poll'), args=[cat])
上記のリダイレクトは次のビューに移動します:
def show_poll(request, cat):
print cat
URLを
url(r'^show/(?P<cat>\w+)/$', 'pollsite.views.show_poll', name="show_poll"),
取得 :Reverse for 'show_poll' with arguments '()' and keyword arguments '{}' not found.
ここで何が欠けていますか?