[Django] #26402: relative path in {% extends "./../base.html" %}

8 views
Skip to first unread message

Django

unread,
Mar 24, 2016, 2:40:55 AM3/24/16
to django-...@googlegroups.com
#26402: relative path in {% extends "./../base.html" %}
-------------------------+-------------------------------------------------
Reporter: vb64 | Owner: nobody
Type: New | Status: new
feature |
Component: | Version: master
Template system | Keywords: extends,include,template,relative
Severity: Normal | path
Triage Stage: | Has patch: 1
Unreviewed |
Easy pickings: 0 | UI/UX: 0
-------------------------+-------------------------------------------------
Allow relative paths in argument of 'extends' and 'include' template tags.
Relative path must start from "./". Examples:

Extend "base.html", located in the same folder, where your template
placed:

{{{
{% extends "./base.html" %}
}}}

Extend "base.html", located at two levels higher

{{{
{% extends "./../../base.html" %}
}}}

Extend "base.html", located in the 'dir1' subfolder, relatively current
template:

{{{
{% extends "./dir1/base.html" %}
}}}

Discussion:
https://groups.google.com/d/topic/django-developers/rDAJ0Ig6FoU/discussion

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

Django

unread,
Mar 24, 2016, 2:44:19 AM3/24/16
to django-...@googlegroups.com
#26402: relative path in {% extends "./../base.html" %}
-------------------------------------+-------------------------------------
Reporter: vb64 | Owner: vb64
Type: New feature | Status: assigned
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
extends,include,template,relative | Unreviewed
path |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* owner: nobody => vb64
* needs_better_patch: => 0
* status: new => assigned
* needs_tests: => 0
* needs_docs: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/26402#comment:1>

Django

unread,
Mar 24, 2016, 2:45:13 AM3/24/16
to django-...@googlegroups.com
#26402: relative path in {% extends "./../base.html" %}
-------------------------------------+-------------------------------------
Reporter: vb64 | Owner: vb64
Type: New feature | Status: assigned
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
extends,include,template,relative | Unreviewed
path |
Has patch: 1 | Needs documentation: 1

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by vb64):

* needs_docs: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/26402#comment:2>

Django

unread,
Mar 24, 2016, 7:38:04 AM3/24/16
to django-...@googlegroups.com
#26402: relative path in {% extends "./../base.html" %}
-------------------------------------+-------------------------------------
Reporter: vb64 | Owner: vb64
Type: New feature | Status: assigned
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
extends,include,template,relative | Someday/Maybe

path |
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* stage: Unreviewed => Someday/Maybe


Comment:

The mailing list hasn't reach a consensus about whether or not to add this
feature yet.

[https://github.com/django/django/pull/6330 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/26402#comment:3>

Django

unread,
Mar 29, 2016, 11:44:04 AM3/29/16
to django-...@googlegroups.com
#26402: relative path in {% extends "./../base.html" %}
-------------------------------------+-------------------------------------
Reporter: vb64 | Owner: vb64
Type: New feature | Status: assigned
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
extends,include,template,relative |
path |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

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

* needs_docs: 1 => 0
* needs_better_patch: 0 => 1
* stage: Someday/Maybe => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/26402#comment:4>

Django

unread,
Apr 21, 2016, 8:26:39 PM4/21/16
to django-...@googlegroups.com
#26402: Allow relative paths in {% extends %} and {% include %}

-------------------------------------+-------------------------------------
Reporter: vb64 | Owner: vb64
Type: New feature | Status: assigned
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
extends,include,template,relative |
path |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/26402#comment:5>

Django

unread,
Apr 27, 2016, 11:13:13 AM4/27/16
to django-...@googlegroups.com
#26402: Allow relative paths in {% extends %} and {% include %}
-------------------------------------+-------------------------------------
Reporter: vb64 | Owner: vb64
Type: New feature | Status: assigned
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
extends,include,template,relative |
path |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

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

* needs_better_patch: 0 => 1


Comment:

A few comments for improvement remain and the branch needs to be rebased.
Please uncheck "Patch needs improvement" after updating so the ticket
returns to the review queue.

--
Ticket URL: <https://code.djangoproject.com/ticket/26402#comment:6>

Django

unread,
May 3, 2016, 7:45:38 AM5/3/16
to django-...@googlegroups.com
#26402: Allow relative paths in {% extends %} and {% include %}
-------------------------------------+-------------------------------------
Reporter: vb64 | Owner: vb64
Type: New feature | Status: assigned
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
extends,include,template,relative |
path |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/26402#comment:7>

Django

unread,
May 7, 2016, 4:26:23 PM5/7/16
to django-...@googlegroups.com
#26402: Allow relative paths in {% extends %} and {% include %}
-------------------------------------+-------------------------------------
Reporter: vb64 | Owner: vb64
Type: New feature | Status: closed

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

Keywords: | Triage Stage: Accepted
extends,include,template,relative |
path |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

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


Comment:

In [changeset:"aec4f97555cbfc9d14d698f61d43a478f5911661" aec4f97]:
{{{
#!CommitTicketReference repository=""
revision="aec4f97555cbfc9d14d698f61d43a478f5911661"
Fixed #26402 -- Added relative path support in include/extends template
tags.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26402#comment:8>

Reply all
Reply to author
Forward
0 new messages