﻿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
20482	File name/type Labels for Code for Tutorial Pt 3 - Write views that actually do something	diek@…	nobody	"I am following along the tutorials, and they are written well overall but one concept has stopped me in my tracks. You have sections of code, and in most cases it is perfectly clear where the code belongs.  In Pt 3 - ""Write views that actually do something"", after I created the templates/polls/index.html, the next segment of code and where it goes is not clear. 
""Now let’s use that html template in our index view:

from django.http import HttpResponse
from django.template import Context, loader

from polls.models import Poll

def index(request):
    latest_poll_list = Poll.objects.order_by('-pub_date')[:5]
    template = loader.get_template('polls/index.html')
    context = Context({
        'latest_poll_list': latest_poll_list,
    })
    return HttpResponse(template.render(context))""
I have no idea where that code would go, other than it is a view.

I think a label for code segments, with filename would help those of us starting out... a lot.

Thank you,

Derrick"	Cleanup/optimization	closed	Documentation	1.5	Normal	fixed			Accepted	1	0	0	1	1	0
