Opened 12 years ago

Closed 12 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

Description

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
admin.autodiscover()

urlpatterns = patterns(,

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

)

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\base.py in get_response, line 111

is specifically where the error is being generated from.

Change History (1)

comment:1 by anonymous, 12 years ago

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