[Django] #27104: The Django test client statement 'response.content' in "Writing your first Django app, part 5" unlikely to return "No polls are available." as documented

13 views
Skip to first unread message

Django

unread,
Aug 22, 2016, 9:46:27 AM8/22/16
to django-...@googlegroups.com
#27104: The Django test client statement 'response.content' in "Writing your first
Django app, part 5" unlikely to return "No polls are available." as
documented
--------------------------------------+--------------------
Reporter: pluralschool | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.10
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
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

--
Ticket URL: <https://code.djangoproject.com/ticket/27104>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 22, 2016, 9:46:53 AM8/22/16
to django-...@googlegroups.com
#27104: The Django test client statement 'response.content' in "Writing your first
Django app, part 5" unlikely to return "No polls are available." as
documented
-------------------------------------+-------------------------------------
Reporter: pluralschool | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: 1.10
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by pluralschool):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/27104#comment:1>

Django

unread,
Aug 22, 2016, 7:23:50 PM8/22/16
to django-...@googlegroups.com
#27104: The Django test client statement 'response.content' in "Writing your first
Django app, part 5" unlikely to return "No polls are available." as
documented
--------------------------------------+------------------------------------

Reporter: pluralschool | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.10
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by timgraham):

* has_patch: 0 => 1
* stage: Unreviewed => Accepted


Comment:

That looks correct. See if this
[https://github.com/django/django/pull/7138 pull request] helps.

--
Ticket URL: <https://code.djangoproject.com/ticket/27104#comment:2>

Django

unread,
Aug 24, 2016, 10:08:58 AM8/24/16
to django-...@googlegroups.com
#27104: The Django test client statement 'response.content' in "Writing your first
Django app, part 5" unlikely to return "No polls are available." as
documented
--------------------------------------+------------------------------------
Reporter: pluralschool | Owner: nobody
Type: Cleanup/optimization | Status: closed
Component: Documentation | Version: 1.10
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"cf2cd4053fe3eed50ab2b7269ed72d25712c970a" cf2cd40]:
{{{
#!CommitTicketReference repository=""
revision="cf2cd4053fe3eed50ab2b7269ed72d25712c970a"
Fixed #27104 -- Corrected shell example in tutorial 5.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27104#comment:3>

Django

unread,
Aug 24, 2016, 10:09:20 AM8/24/16
to django-...@googlegroups.com
#27104: The Django test client statement 'response.content' in "Writing your first
Django app, part 5" unlikely to return "No polls are available." as
documented
--------------------------------------+------------------------------------
Reporter: pluralschool | Owner: nobody
Type: Cleanup/optimization | Status: closed
Component: Documentation | Version: 1.10

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"6f006f40f78649c20c72c75c8159e164de9c7b6c" 6f006f4]:
{{{
#!CommitTicketReference repository=""
revision="6f006f40f78649c20c72c75c8159e164de9c7b6c"
[1.10.x] Fixed #27104 -- Corrected shell example in tutorial 5.

Backport of cf2cd4053fe3eed50ab2b7269ed72d25712c970a from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27104#comment:4>

Reply all
Reply to author
Forward
0 new messages