Code

#19332 closed Bug (worksforme)

Tutorial 4 - error

Reported by: renee.vanheerden@… Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In Tutorial 4 - Use generic views: Less code is better:

Add that you have to change the following line in views.py

return HttpResponseRedirect(reverse('polls.views.results', args=(p.id,)))
to
return HttpResponseRedirect(reverse('results', args=(p.id,)))

the current version gives an error
"Reverse for 'polls.views.results' with arguments '(5,)' and keyword arguments '{}' not found."

Attachments (0)

Change History (1)

comment:1 Changed 17 months ago by timo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to worksforme
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.