Re: [Django] #7377: "extends" and "block" tags are not available when constructing template from scratch

6 views
Skip to first unread message

Django

unread,
Sep 11, 2011, 5:52:33 PM9/11/11
to django-...@googlegroups.com
#7377: "extends" and "block" tags are not available when constructing template
from scratch
-------------------------------------+---------------------------------
Reporter: mgeorge@… | Owner: nobody
Type: Bug | Status: reopened
Milestone: | Component: Template system
Version: SVN | Severity: Normal
Resolution: | Keywords:
Triage Stage: Accepted | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+---------------------------------
Changes (by carljm):

* ui_ux: => 0
* easy: => 0
* stage: Design decision needed => Accepted


Comment:

Given Gulopine's comment, I don't see any reason not to treat this as a
bug.

--
Ticket URL: <https://code.djangoproject.com/ticket/7377#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 14, 2012, 11:20:48 PM9/14/12
to django-...@googlegroups.com
#7377: "extends" and "block" tags are not available when constructing template
from scratch
---------------------------------+------------------------------------

Reporter: mgeorge@… | Owner: nobody
Type: Bug | Status: reopened
Component: Template system | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------

Comment (by andrewbadr):

FWIW all you have to do to get the desired behavior is import
django.template.loader anywhere in your program. Magic!

--
Ticket URL: <https://code.djangoproject.com/ticket/7377#comment:14>

Django

unread,
Sep 30, 2012, 3:39:06 PM9/30/12
to django-...@googlegroups.com
#7377: "extends" and "block" tags are not available when constructing template
from scratch
---------------------------------+------------------------------------
Reporter: mgeorge@… | Owner: melinath
Type: Bug | Status: new

Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by melinath):

* owner: nobody => melinath
* status: reopened => new


Comment:

I've made a pull request which fixes this ticket:
https://github.com/django/django/pull/414. This seems to just have been a
matter of adding the loader tags to builtins at the same time that the
defaulttags and defaultfilters are added. Doing so doesn't cause any new
issues to appear... so unless there's something I'm missing, this should
be good to go.

(I don't have tests, but I can't think of a way to add an automated test
for this.)

--
Ticket URL: <https://code.djangoproject.com/ticket/7377#comment:15>

Django

unread,
Oct 1, 2012, 5:59:57 PM10/1/12
to django-...@googlegroups.com
#7377: "extends" and "block" tags are not available when constructing template
from scratch
---------------------------------+------------------------------------
Reporter: mgeorge@… | Owner: melinath
Type: Bug | Status: assigned

Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by melinath):

* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/7377#comment:16>

Django

unread,
Oct 14, 2012, 8:17:40 PM10/14/12
to django-...@googlegroups.com
#7377: "extends" and "block" tags are not available when constructing template
from scratch
---------------------------------+------------------------------------
Reporter: mgeorge@… | Owner: melinath
Type: Bug | Status: assigned
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by lrekucki):

* needs_tests: 0 => 1


Comment:

@melinath: To test this, you can create a python subprocess that executes
some code snippet in which you only import {{{django.template}}}, but not
the loaders. It's also worth checking what happens in that scenario if I
pass a string to {{{extends}}}.

--
Ticket URL: <https://code.djangoproject.com/ticket/7377#comment:17>

Django

unread,
Jul 27, 2014, 2:57:24 AM7/27/14
to django-...@googlegroups.com
#7377: "extends" and "block" tags are not available when constructing template
from scratch
---------------------------------+--------------------------------------
Reporter: mgeorge@… | Owner: melinath
Type: Bug | Status: closed

Component: Template system | Version: master
Severity: Normal | Resolution: worksforme

Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by anubhav9042):

* status: assigned => closed
* resolution: => worksforme


Comment:

I don't think that this exists anymore in master.

--
Ticket URL: <https://code.djangoproject.com/ticket/7377#comment:18>

Reply all
Reply to author
Forward
0 new messages