Code

#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.

Attachments (0)

Change History (1)

comment:1 Changed 17 months ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.