Opened 11 years ago

Closed 11 years ago

#20894 closed Uncategorized (invalid)

type

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

Description

on
https://docs.djangoproject.com/en/1.5/intro/tutorial03/
where the code-snippet says:

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

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns(,

url(r'polls/', include('polls.urls')),
url(r'
admin/', include(admin.site.urls)),

)

url(r'polls/', include('polls.urls')),

should be

url(r, include('polls.urls')),

Change History (1)

comment:1 by Tim Graham, 11 years ago

Resolution: invalid
Status: newclosed

I'm fairly certain the tutorial is correct -- the suggestion isn't valid Python code. Please use preview and try to format your post appropriately so it's more readable.

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