これが を返すのはなぜNoReverseMatch
ですか?
url(r'^write/(?:(?P<recipients>[\w.@+-:]+)/)?$', 'write', name='postman_write'),
テンプレート:
<a href='{% url postman_write recipients=object.user %}'>Send Message</a>
これもうまくいきません..
<a href='{% url postman_write object.user %}'>Send Message</a>
戻り値:Reverse for 'postman_write' with arguments '(<User: admin>,)' and keyword arguments '{}' not found.
この URL を適切に構築するために不足しているものは何ですか? ありがとう!