Opened 5 years ago

Closed 5 years ago

#20894 closed Uncategorized (invalid)


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


where the code-snippet says:

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

from django.contrib import admin

urlpatterns = patterns(,

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


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

should be

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

Change History (1)

comment:1 Changed 5 years ago by Tim Graham

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