Opened 7 years ago

Closed 7 years ago

#5616 closed (worksforme)

Writing your first Django app, part 4

Reported by: anonymous Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


i could be wrong but i am pretty sure the last line of code specified in the tutorial (Writing your first Django app, part 4):
return HttpResponseRedirect(reverse('poll_results', args=(,)))

forces the browser to redirect to
instead of

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by ubernostrum

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

Actually try it out with the code supplied in the tutorial. The URLs for the polls application are rooted under /polls/, not /objects/; reverse works based on what's in the URLConf, so it will return /polls/1/vote/.

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.