id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 4267 "a bug in ""The Django template language: For Python programmers""" keisuke.nishida@… Jacob "I have found a possible bug in the following page: http://www.djangoproject.com/documentation/templates_python/#writing-the-compilation-function You refer to ""token.contents[0]"" at several places in the sample code like this: {{{ def do_current_time(parser, token): try: # split_contents() knows not to split quoted strings. tag_name, format_string = token.split_contents() except ValueError: raise template.TemplateSyntaxError, ""%r tag requires a single argument"" % token.contents[0] }}} I believe ""token.contents[0]"" returns a single character, which is not very informative and not what you want here. Maybe it should have been ""token.contents.split()[0]""? The same applies to 0.95/0.96 docs. Best regards, " closed Documentation dev fixed Unreviewed 0 0 0 0 0 0