#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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.04a714824129fad882e91a275c4f7168%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to