Opened 5 years ago

Closed 5 years ago

#19329 closed Uncategorized (invalid)

code broken

Reported by: timbauer@… 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


The following code from Tutorial 3 produces a type error ('str' object is not callable).

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

from django.contrib import admin

urlpatterns = patterns(,

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


This happens even when the code is copied and pasted (everything worked fine prior to that change. The error code seems to specifically point at "include('poll.urls')." Have tried a couple of different things, including ditching the apostrophe's. The problem appears to stem from the something within Django itself

C:\Python27\lib\site-packages\django\core\handlers\ in get_response, line 111

is specifically where the error is being generated from.

Change History (1)

comment:1 Changed 5 years ago by anonymous

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top