On Sun, Jun 7, 2009 at 5:42 PM, grElement <ang...@andyet.net> wrote:

>
> Alex
>
> Sorry I wasn't more clear, but I wasn't suggesting that the fact I'm
> getting the error is a bug, but it seems as though this error message
> results in an uncaught error and that is something they are working on
> already - see this http://code.djangoproject.com/ticket/6442
>

FWIW I cannot recreate the exception using the formula specified in that
ticket.  If I do what that ticket says, I get a "ViewDoesNotExist" exception
with details that the specified view could not be imported and the error was
"no module named x".  It's also not a new message, the changeset that
introduced the exception I am seeing (r357) was done to fix ticket #240,
nearly four years ago.  So there's some key bit to recreating that error
that I'm missing or is missing from the instructions in that ticket.  But
you've apparently got a situation were it arises.


>
> Here is the entire traceback (although not very helpful):
>
> Django Version: 1.0.2 final
> Python Version: 2.5.2
> Installed Applications:
> ['django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.sites',
> 'django.contrib.admin',
> 'django.contrib.admindocs',
> 'django.contrib.comments',
> 'codesynergy.codes',
> 'codesynergy.content']
> Installed Middleware:
> ('django.middleware.common.CommonMiddleware',
> 'django.contrib.sessions.middleware.SessionMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware')
>
>
> Traceback:
> File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py"
> in get_response
> 86. response = callback(request, *callback_args, **callback_kwargs)
>
> Exception Type: TypeError at /code/tableofcontents/
> Exception Value: 'str' object is not callable
>
>
Personally, I'd start adding prints or running under a debugger and tracing
what is going on in django.core.urlresolvers.resolve that results in
callback being returned as a string instead of a callable.

Karen

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to