Opened 7 years ago

Closed 7 years ago

#18089 closed Uncategorized (invalid)

Django Tutorial -Part 3

Reported by: prem Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Claude Paroz)

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 looks like,

from django.conf.urls import patterns, include, url

from django.contrib import admin

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/$', ''),
    url(r'^admin/', include(,

Change History (1)

comment:1 Changed 7 years ago by Claude Paroz

Description: modified (diff)
Resolution: invalid
Status: newclosed

Please use the Preview button to be sure your description is well formatted before posting it.

Then, the ticketing system is not a way to get support for using Django. Open a ticket only when you really think there is a bug in Django, after having checked other means to obtain support (see

Note: See TracTickets for help on using tickets.
Back to Top