Opened 17 years ago
Closed 15 years ago
#6971 closed (worksforme)
Undocumented behaviour in django.template.Template ?
Reported by: | 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: | no | UI/UX: | no |
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 by , 16 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:2 by , 15 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Either not enough information to be reproduced, or fixed in the meantime.