[Django] #26000: Error in tutorial05 Django1.9

6 views
Skip to first unread message

Django

unread,
Dec 29, 2015, 8:12:22 AM12/29/15
to django-...@googlegroups.com
#26000: Error in tutorial05 Django1.9
---------------------------+-----------------------------------------------
Reporter: philbert | Owner: nobody
Type: Bug | Status: new
Component: | Version: 1.9
Documentation |
Severity: Normal | Keywords: AttributeError DetailView pk slug
Triage Stage: | Has patch: 0
Unreviewed |
Easy pickings: 0 | UI/UX: 0
---------------------------+-----------------------------------------------
After following the directions here:
https://docs.djangoproject.com/en/1.9/intro/tutorial05/

These two tests return the same error:

ERROR: test_detail_view_with_a_future_question
(polls.tests.QuestionIndexDetailTests)

ERROR: test_detail_view_with_a_past_question
(polls.tests.QuestionIndexDetailTests)

AttributeError: Generic detail view DetailView must be called with either
an object pk or a slug.

Discovered this suggestion but didn't manage to get it to work.
Not sure what the correct solution should be.
http://chriskief.com/2012/12/29/django-generic-detailview-without-a-pk-or-
slug/

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

Django

unread,
Dec 29, 2015, 8:31:07 AM12/29/15
to django-...@googlegroups.com
#26000: Error in tutorial05 Django1.9
-------------------------------------+-------------------------------------
Reporter: philbert | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 1.9
Severity: Normal | Resolution:
| worksforme
Keywords: AttributeError | Triage Stage:
DetailView pk slug | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* status: new => closed
* needs_better_patch: => 0
* resolution: => worksforme
* needs_tests: => 0
* needs_docs: => 0


Comment:

I think you probably make a mistake along the way, but you'll need to
provide your project so that we can help identify the issue. Please see
TicketClosingReasons/UseSupportChannels for ways to get help.

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

Reply all
Reply to author
Forward
0 new messages