Undocumented behaviour in django.template.Template ?
|Reported by:||AnthonyJLucas@…||Owned by:||nobody|
|Severity:||Keywords:||undocumented, extends, Template|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.