#25724: Wrong path in index.html file [django tutorial]
-------------------------------+------------------------
     Reporter:  marq           |      Owner:  nobody
         Type:  Bug            |     Status:  new
    Component:  Documentation  |    Version:  1.8
     Severity:  Normal         |   Keywords:  index.html
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+------------------------
 polls/templates/polls/index.html

 {{{

 {% 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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/047.1daac272c0ef60684467f11bd2ed636f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to