[Django] #27598: Allow specifying directories for a filesystem template loader

17 views
Skip to first unread message

Django

unread,
Dec 13, 2016, 4:46:35 PM12/13/16
to django-...@googlegroups.com
#27598: Allow specifying directories for a filesystem template loader
-------------------------------------------+--------------------------
Reporter: Tim Graham | Owner: nobody
Type: New feature | Status: assigned
Component: Template system | Version: master
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+--------------------------
For template widget rendering (#15667), it'll be useful to allow
specifying the directories for a particular instance of the filesystem
template loader.
[https://github.com/django/django/pull/6498#issuecomment-266587566 Carl
says]:

The current implementation of the filesystem loader (looking at
`self.engine.dirs`) evolved naturally from its origins looking directly at
`settings.TEMPLATE_DIRS`, but a more flexible implementation would just
take `dirs` as an extra loader parameter (we have precedent for loaders
that take additional args: the cached loader). That allows inserting
potentially two instances of the filesystem loader into the loaders chain,
looking at two different lists of dirs, without needing a subclass.

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

Django

unread,
Dec 13, 2016, 4:54:37 PM12/13/16
to django-...@googlegroups.com
#27598: Allow specifying directories for a filesystem template loader
---------------------------------+------------------------------------

Reporter: Tim Graham | Owner: nobody
Type: New feature | 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 Tim Graham):

* has_patch: 0 => 1


Comment:

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

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

Django

unread,
Dec 14, 2016, 10:55:30 AM12/14/16
to django-...@googlegroups.com
#27598: Allow specifying directories for a filesystem template loader
---------------------------------+------------------------------------

Reporter: Tim Graham | Owner: nobody
Type: New feature | Status: closed

Component: Template system | Version: master
Severity: Normal | Resolution: fixed
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 Tim Graham <timograham@…>):

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


Comment:

In [changeset:"92c5eeac3358e8243e29604d51b724f46fd5305f" 92c5eeac]:
{{{
#!CommitTicketReference repository=""
revision="92c5eeac3358e8243e29604d51b724f46fd5305f"
Fixed #27598 -- Allowed specifying directories for a filesystem template
loader.

Thanks Carl Meyer for review.
}}}

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

Reply all
Reply to author
Forward
0 new messages