Adrian Holovaty wrote:
> On 8/3/06, bernie2004 <[EMAIL PROTECTED]> wrote:
> >   File "... /django/views/debug.py", line 18, in
> > get_template_exception_info
> >     origin, (start, end) = exc_value.source
> >
> > ValueError: too many values to unpack
>
> Hmmm...I've never used Kid with Django, but, as a shot in the dark,
> I'd suggest making sure your TEMPLATE_DEBUG setting is set to False.
>
> Adrian
>
> --
> Adrian Holovaty
> holovaty.com | djangoproject.com


You were perfectly right. After setting TEMPLATE_DEBUG=False everything
was fine.
BTW, by default TEMPLATE_DEBUG is set to DEBUG and not to False like
specified at
http://www.djangoproject.com/documentation/settings/#template-debug


import kid
def kidtest( request ):
    tpl = kid.Template( source='<b>$test</b>', test='Testing Kid' )
    return HttpResponse( tpl.serialize( output='xhtml-strict' ) )

outputs now

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<b>Testing Kid</b>

thanks very much for your quick shot!
bernie


--~--~---------~--~----~------------~-------~--~----~
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