﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23491	Django Tutorial 1.7, Pt 3. Adding Index method to views.py	derrick kearney	nobody	"First off I appreciate the work and effort done. Thank you.
I am confused in part 3 of the tutorial when the index method is added. Looking at the code it appears that everything previous should be replaced ( the methods detail, results and vote).  But running the code without the detail method generates an error.

In part 2 of the tutorial when code was added you used:  

{{{
# ... 
}}}
seemingly to indicate to add to the existing code. No such notation is done for:

{{{
from django.http import HttpResponse

from polls.models import Question


def index(request):
    latest_question_list = Question.objects.order_by('-pub_date')[:5]
    output = ', '.join([p.question_text for p in latest_question_list])
    return HttpResponse(output)
}}}

And looking at it on its own, it looks complete. If the views.py is supposed to have a details method in the code why is it not there? Django is great with documentation and this is why I find it so perplexing that the entire file contents up to that point cannot be shown.

Thank you.

Derrick"	Cleanup/optimization	closed	Documentation	1.7	Normal	fixed			Ready for checkin	0	0	0	0	1	0
