Code

Opened 6 years ago

Closed 4 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.

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by ericholscher

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

comment:2 Changed 4 years ago by anonymous

  • Resolution set to worksforme
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.