1
渡していないなurl_for:私は次のエラーを取得するしかしフラスコ私はHTMLで次のコードを持っているパラメータ
{% for i in events %}
<li>
<strong>{{i.event_title}}</strong><br />
{{i.descript}} <br />
{{i.customer_id}}<br/>
<small>{{i.date}}</small>
</br>
<a href="{{url_for('cancel_event',ID=i.event_id)}}">Cancel this event</a>
</li>
{% else %}
<li><strong>You have no events scheduled</strong>
{% endfor %}
を:「ID」:canel_eventは1つの必要な位置引数が欠落しています。フラスココードは次のとおりです。
私は何が間違っているのか分かりません。あなたが郵送で依頼で、あなたのIDを与えるべきかmethod.Thenは郵送で、request.For例からそれを取る取得