On Mon, 2007-06-11 at 13:01 +0300, Noam Raphael wrote:
[...]
> I did a fresh SVN checkout, and made a new project, and run
> ./manage.py shell, and got:
> 
> [EMAIL PROTECTED]:/tmp/mysite$ ./manage.py shell
> Python 2.5.1 (r251:54863, May  2 2007, 16:56:35)
> [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> (InteractiveConsole)
> >>> from django.template import Template, Context
> >>> t = Template('''{% block title %}Hello{% end block %}''')
> Traceback (most recent call last):
>   File "<console>", line 1, in <module>
>   File "/home/noam/lib/python/django/template/__init__.py", line 162,
> in __init__
>     self.nodelist = compile_string(template_string, origin)
>   File "/home/noam/lib/python/django/template/__init__.py", line 178,
> in compile_string
>     return parser.parse()
>   File "/home/noam/lib/python/django/template/__init__.py", line 284, in parse
>     self.invalid_block_tag(token, command)
>   File "/home/noam/lib/python/django/template/__init__.py", line 328,
> in invalid_block_tag
>     raise self.error( token, "Invalid block tag: '%s'" % command)
> TemplateSyntaxError: Invalid block tag: 'block'

Bizarre, but true. I guess it's because we're always importing template
loaders or something in real-world cases. *shrug*.

This bit's worth fixing, in any case. Good catch.

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to