Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#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&#39;s up?</a></li>\n \n </ul>\n'

Please help with clarification.

Thanks

Change History (4)

comment:1 by pluralschool, 8 years ago

comment:2 by Tim Graham, 8 years ago

Has patch: set
Triage Stage: UnreviewedAccepted

That looks correct. See if this pull request helps.

comment:3 by Tim Graham <timograham@…>, 8 years ago

Resolution: fixed
Status: newclosed

In cf2cd40:

Fixed #27104 -- Corrected shell example in tutorial 5.

comment:4 by Tim Graham <timograham@…>, 8 years ago

In 6f006f4:

[1.10.x] Fixed #27104 -- Corrected shell example in tutorial 5.

Backport of cf2cd4053fe3eed50ab2b7269ed72d25712c970a from master

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