#27104 closed Cleanup/optimization (fixed)
The Django test client statement 'response.content' in "Writing your first Django app, part 5" unlikely to return "No polls are available." as documented
Reported by: | pluralschool | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.10 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hi
Given the code for "Writing your first Django app, part 5" is likely to be carried forward from "Writing your first Django app, part 4", the statement 'response.content' in The Django test client is unlikely to return b'\n\n\n <p>No polls are available.</p>\n\n' as documented, irregardless of TIME_ZONE set to default 'UTC' or system time zone.
In fact, the statement 'response.content' returns b'\n <ul>\n \n <li><a href="/polls/1/">What's up?</a></li>\n \n </ul>\n'
Please help with clarification.
Thanks
Change History (4)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
That looks correct. See if this pull request helps.