Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<a href={% url home %}></a>
Django API で {% url %} が見つかりません。
URL
指定されたビュー関数とオプションのパラメーターに一致する絶対 URL (つまり、ドメイン名のない URL) を返します。これは、テンプレートに URL をハードコードする必要があるため、DRY 原則に違反することなくリンクを出力する方法です。
{% url path.to.some_view arg1,arg2,name1=value1 %}