On Mon, 2006-09-25 at 17:25 -0700, brad wrote:
> Now I am getting an error of:
> 
> Exception Type:       TypeError
> Exception Value:      'tuple' object is not callable
> Exception Location:   E:\dp1\mysite\..\mysite\urls.py in ?, line 10
> 
> And line ten of 'urls.py' is the following:
> 
> (r'^select/$', 'mysite.polls.views.select')

When you import mysite.polls.views.select at a Python prompt (e.g. "from
mysite.polls.views import select") is it really a function? Sounds like
it might be a tuple. Have a look at type(select) to see this.

Also, is the first parameter to the patterns() function a string? I
think I've seen this error when you accidently leave off the first
argument to patterns (which is the uniform namespace for that part of
the URL configuration) and just launch into reg-exp and function pairs.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to