FAILED (failures=3)
Every errot is like this: AssertionError: Lists differ: ['<Question: Past
question.>'] != [<Question: Past question.>]
So, I checked the source code of "assertQuerysetEqual()" and found the
line "items = map(transform, qs)"
cause each element in the list has more quotation marks
and then, I changed the
"assertQuerysetEqual(response.context['latest_question_list'],
[question],)" to
"assertEqual(list(response.context['latest_question_list']), [question])"
Run again, the code works normally this time, The results are as follows:
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
........
----------------------------------------------------------------------
Ran 8 tests in 0.065s
OK
Destroying test database for alias 'default'...
In addition: this code does not show the running results on the website
--
Ticket URL: <https://code.djangoproject.com/ticket/33315>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
Comment:
Tutorial 05 works for me, it looks that you're using docs for a wrong
version of Django. Closing per TicketClosingReasons/UseSupportChannels.
--
Ticket URL: <https://code.djangoproject.com/ticket/33315#comment:1>