Opened 8 years ago

Closed 6 years ago

#6971 closed (worksforme)

Undocumented behaviour in django.template.Template ?

Reported by: AnthonyJLucas@… Owned by: nobody
Component: Template system Version: 0.96
Severity: Keywords: undocumented, extends, Template
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

When you import and run Template from django template on a string which contains the "extends" tag, it will throw a TemplateSyntaxError, "Invalid block tag: 'extends'".

Everything works fine if you also import loader from the template module. It makes sense in some ways, and it was suggested this be filed under documentation. But on second thoughts, as this seems like it may be unwanted behaviour I've put it under Template System.

Change History (2)

comment:1 Changed 8 years ago by Eric Holscher

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedDesign decision needed

comment:2 Changed 6 years ago by anonymous

Resolution: worksforme
Status: newclosed

Either not enough information to be reproduced, or fixed in the meantime.

Note: See TracTickets for help on using tickets.
Back to Top