#14621: Non-informative error when URL is not properly configured
---------------------------+------------------------------------------------
 Reporter:  srulix         |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.2       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 New into Django, I just stumbled across this when I was trying to do the
 Tutorial (which is great, by the way).

 When the patterns are not properly configured in urls.py, for instance in
 this case:
 {{{
 urlpatterns = patterns('', # notice that i forgot to do 'polls.views' here
     (r'^$', 'index'),
     (r'^(?P<poll_id>\d+)/$', 'detail'),
     (r'^(?P<poll_id>\d+)/results/$', 'results'),
     (r'^(?P<poll_id>\d+)/vote/$', 'vote'),
 )
 }}}

 The error just says 'str' object is not callable (I'm attaching full
 HTML). Digging further down I saw in Local args that callback = detail,
 and that raised the suspicion and I found it.

 I think a more meaningful error, saying that the URL was matched to
 callback 'detail' and the corresponding view could not be found, would be
 nice.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14621>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to