﻿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
15038	Error	fsouza	nobody	"Hi guys, i have spent hours looking for the solution and i think the documentation is wrong.
my code wasn't working and now it is after i did the fix.

urlpatterns = patterns('',
    ('^$', 'direct_to_template', { 'template': 'abc.html' }),
    (r'^polls/$', 'polls.views.index'),
)

The code above does not work because the docs say to me put 'direct_to_template', with '"" , and not direct_to_template without it.
The doc url: http://docs.djangoproject.com/en/1.2/ref/generic-views/

After hours i found the correct solution in the djangobook. There they say the right thing, put direct_to_template without '' :
http://www.djangobook.com/en/1.0/chapter09/


Thanks and hope to help with that.
"		closed	Documentation	1.2		duplicate			Unreviewed	0	0	0	0	0	0
