Code

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#13920 closed (invalid)

Django Redirect Example isn't Right

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

Description

At http://docs.djangoproject.com/en/1.1/topics/http/shortcuts/ the example for redirect doesn't correctly show it as using HttpResponseRedirect, but instead an alias of 'redirect'

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by kmtracey

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed
  • Summary changed from Django Redirect Example isn't Right to `

? That page gives examples of using the redirect() shortcut. It is correct that they use redirect, not HttpResponseRedirect, since they are intended to illustrate use of the shortcut.

comment:2 Changed 4 years ago by kmtracey

  • Summary changed from ` to Django Redirect Example isn't Right

Restoring summary I did not intend to change.

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.