#28486: Template FileLoader can't find widget templates
-------------------------------------+-------------------------------------
               Reporter:  Andrey     |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:  Template   |        Version:  1.11
  system                             |       Keywords:  widgets, templates,
               Severity:  Normal     |  admin
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 I have both apps and file loaders in my project. I load custom directory
 called "templates" in the root of the project.

 In case I want to override template for field widget from Django Admin
 (perhaps it related to regular widgets as well) and I create a file under
 "templates/admin/widgets/clearable_file_input.html". Nothing happens. If I
 will move it somewhere under "<my
 app>/templates/widgets/clearable_file_input.html" it works fine. However,
 I can override "admin/base.html" and few other templates from admin by
 placing them in "templates/" folder.

 I played around and found that when looking for templates for widget
 Django loads all template directories for apps, but doesn't load anything
 from DIRS parameter. In the same time, it loads everything properly for
 other templates.

 If description is messy or unclear please ask, and I will clarify unclear
 parts.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28486>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/056.50d8591e3c810f0d7b3df09bfd50f84b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to