On Fri, Jul 16, 2010 at 5:43 AM, Jx <l3earl3ea...@gmail.com> wrote:

>  129.             self._callback = get_callable(self._callback_str)
> File "/usr/local/lib/python2.6/dist-packages/django/utils/
> functional.py" in wrapper
>  124.         result = func(*args)
> File "/usr/local/lib/python2.6/dist-packages/django/core/
> urlresolvers.py" in get_callable
>  56.                 lookup_view = getattr(import_module(mod_name),
> func_name)
> File "/usr/local/lib/python2.6/dist-packages/django/utils/
> importlib.py" in import_module
>  35.     __import__(name)
>
> Exception Type: TemplateSyntaxError at /login
> Exception Value: Caught SyntaxError while rendering: invalid syntax
> (views.py, line 13)
>
> The template i was using was just this:
>


The error is not in the template. It is in a views.py file, on line 13.
Python raised a syntax error attempting to import a views.py file (while
Django was attempting to reverse a url, which involves looking at all your
url patterns and importing all referenced views). In general exceptions
raised during template rendering (as this was) get turned into
TemplateSyntaxErrors. You need to look at the detail of the exception value
to figure out what is really going on.

Karen
-- 
http://tracey.org/kmt/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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