#28945: widgets.Input should support non-app custom template_names
-----------------------------------------+------------------------
               Reporter:  Jonas Haag     |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  Uncategorized  |        Version:  2.0
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 If you make your own `django.forms.widgets.Input` subclass an overwrite
 the `template_name` argument, Django will only look in
 `django/forms/templates/` and in your app dirs, but not in any templates
 defined in a `settings.TEMPLATES[...]['DIRS']` dir.

 {{{
 class MyInput(widgets.Input):
     template_name = 'foo.html'
 }}}

 Even if I have `spam/templates` in `DIRS`, it won't look for
 `spam/templates/foo.html`.

 We should at least document this.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28945>
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.b8e12618d23d8783c69eadd1f070e54f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to