Opened 14 years ago
Closed 14 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 )
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)),
)
Change History (1)
comment:1 by , 14 years ago
| Description: | modified (diff) |
|---|---|
| Resolution: | → invalid |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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).