1
私のURLファイルに次の行があります。djangoはURL templatetagを介して追加オプションを渡して表示する
url(r'^confirm/$', 'confirm', {'status':'live'}, name="confirm"),
ご覧のとおり、here
status
status
については、テンプレートは
url
templatetagを使用しています。私は
{% url confirm status='pending' %}
を試しましたが、次のエラーが表示されます。
Caught NoReverseMatch while rendering: Reverse for 'confirm' with arguments '()' and keyword arguments '{'status': u'pending'}' not found. Is it possible to do what I am trying to do?