{{{
{% if latest_question_list %}
<ul>
{% for question in latest_question_list %}
<li><a href="/polls/{{ question.id }}/">{{ question.question_text
}}</a></li>
{% endfor %}
</ul>
{% else %}
<p>No polls are available.</p>
{% endif %}
}}}
Tutorial 3
This line:
{{{
<li><a href="/polls/{{ question.id }}/">{{ question.question_text
}}</a></li>
}}}
should be replace with:
{{{
<li><a href="{{ question.id }}/">{{ question.question_text }}</a></li>
}}}
It cause a bug(doubled polls in path), which set path
/polls/polls/<question_id>
--
Ticket URL: <https://code.djangoproject.com/ticket/25724>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
You were most likely missing the leading slash in the URL, causing the
browser to treat it as a relative URL.
--
Ticket URL: <https://code.djangoproject.com/ticket/25724#comment:1>
* status: new => closed
* resolution: => invalid
--
Ticket URL: <https://code.djangoproject.com/ticket/25724#comment:2>