Opened 5 years ago

Closed 5 years ago

#22694 closed Bug (worksforme)

Code error in Django 1.6 tutorial, part 3

Reported by: gander@… Owned by: nobody
Component: Documentation Version: 1.6
Severity: Release blocker Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no


In the definition for the vote method, the line:

return HttpResponseRedirect(reverse('polls:results', args=(,)))

should be:

return HttpResponseRedirect(reverse('polls:results', args=[])) (brackets, not parens)

I'm labeling this release blocker as the the code will not run without the change.

Change History (1)

comment:1 Changed 5 years ago by Baptiste Mispelon

Resolution: worksforme
Status: newclosed


The code looks OK to me.
I suspect you might have typed args=( instead of args=(,).


Note: See TracTickets for help on using tickets.
Back to Top