Code

Opened 2 years ago

Closed 2 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 claudep)

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)),
)

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by claudep

  • Description modified (diff)
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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 https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels).

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.