Opened 18 years ago

Closed 18 years ago

#4221 closed (fixed)

tutorial 4 uses hardcoded, absolute URL instead of get_absolute_url() or permalink()

Reported by: anonymous Owned by: Jacob
Component: Documentation Version: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

Tutorial 3 makes a big deal of not using absolute urls in an application. Then tutorial 4 includes an absolute URL in views.vote :(

return HttpResponseRedirect('/polls/%s/results/' % p.id)

Shouldn't it be using something like get_absolute_url instead?

Change History (2)

comment:1 by Simon G. <dev@…>, 18 years ago

Patch needs improvement: set
Triage Stage: UnreviewedAccepted

comment:2 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: newclosed

(In [5368]) Fixed #4221 -- Removed dependence on hard-coded URL in tutorial 4.

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