Opened 19 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 , 19 years ago
| Patch needs improvement: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:2 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [5368]) Fixed #4221 -- Removed dependence on hard-coded URL in tutorial 4.