﻿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
18089	Django Tutorial -Part 3	prem	nobody	"Im new to Django and currently working on Part 3.

I tried the exact code as given in the tutorial but I get an error.

name main_page is not defined..when I run that page.

This is how my urls.py looks like,

from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^polls/$', 'polls.views.index'),
    url(r'^polls/(?P<poll_id>\d+)/$', 'polls.views.detail'),
    url(r'^polls/(?P<poll_id>\d+)/results/$', 'polls.views.results'),
    url(r'^polls/(?P<poll_id>\d+)/vote/$', 'polls.views.vote'),
    url(r'^admin/', include(admin.site.urls)),
)
"	Uncategorized	new	Documentation	1.4	Normal				Unreviewed	0	0	0	0	0	0
