#17537: Writing your first Django app, part 4 - Generic Views - Update to
index.html needed
--------------------------------+--------------------
     Reporter:  canice_lambe@…  |      Owner:  nobody
         Type:  Uncategorized   |     Status:  new
    Component:  Documentation   |    Version:  1.3
     Severity:  Normal          |   Keywords:
 Triage Stage:  Unreviewed      |  Has patch:  0
Easy pickings:  0               |      UI/UX:  0
--------------------------------+--------------------
 I could only get the Generic Views to work after I gave the detail view a
 name 'poll_details' in the urlpatterns and updated index.html to have
 line:

             <li><a href="{% url poll_details pk=poll.id %}">{{ poll.id }}.
 {{ poll.question }}</a></li>

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17537>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to