https://docs.djangoproject.com/ja/1.11/intro/tutorial04/
を見ながらdjangoの勉強をしています。
<h1>{{ question.question_text }}</h1> <ul> {% for choice in question.choice_set.all %} <li>{{ choice.choice_text }} -- {{ choice.votes }} vote{{ choice.votes|pluralize }}</li> {% endfor %} </ul> <a href="{% url 'polls:detail' question.id %}">Vote again?</a>
というコードが出てきましたがこの
<a href="{% url 'polls:detail' question.id %}">Vote again?</a>
部分の
'polls:detail'
の意味がよくわかりません。
特に:の意味がよくわからないです。この:に名前は付いているのでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。