https://stackoverflow.com/questions/14719883/django-can-not-get-a-time-
function-timezone-datetime-to-work-properly-gett
The issue is that there is an import line hiding in Part 2 "Playing with
the API" where imports are added to the polls/models.py that are often
missed, generating a different error when running the tests than what is
expected by that part of the tutorial.
I already have a patch for this :)
--
Ticket URL: <https://code.djangoproject.com/ticket/30775>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Katie McLaughlin):
https://github.com/django/django/pull/11781
--
Ticket URL: <https://code.djangoproject.com/ticket/30775#comment:1>
* has_patch: 0 => 1
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/30775#comment:2>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"44077985f58be02214a11ffde35776fed3c960e1" 44077985]:
{{{
#!CommitTicketReference repository=""
revision="44077985f58be02214a11ffde35776fed3c960e1"
Fixed #30775 -- Added admonition about missing imports to "Running tests"
section in tutorial 5.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30775#comment:3>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"14125bb039a835a6297c0abd1ee4f4a9ad062f84" 14125bb]:
{{{
#!CommitTicketReference repository=""
revision="14125bb039a835a6297c0abd1ee4f4a9ad062f84"
[3.0.x] Fixed #30775 -- Added admonition about missing imports to "Running
tests" section in tutorial 5.
Backport of 44077985f58be02214a11ffde35776fed3c960e1 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30775#comment:4>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"242805c82be5ae9109b4b14335bcad3a3870571d" 242805c8]:
{{{
#!CommitTicketReference repository=""
revision="242805c82be5ae9109b4b14335bcad3a3870571d"
[2.2.x] Fixed #30775 -- Added admonition about missing imports to "Running
tests" section in tutorial 5.
Backport of 44077985f58be02214a11ffde35776fed3c960e1 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30775#comment:5>