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.
* 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>
* needs_docs: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/26402#comment:2>
* 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>
* needs_docs: 1 => 0
* needs_better_patch: 0 => 1
* stage: Someday/Maybe => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/26402#comment:4>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/26402#comment:5>
* 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>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/26402#comment:7>
* 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>