Overriding form widget templates

Hi! In Django 5, is there a way to globally override widget templates?

In my use case, I have to create a different widget for file uploads, specially when displaying the file in templates (the default shows the current file with its path and a widget to upload a new file).

I tried to implement the final solution mentioned here: Overriding Widgets templates not working (following help), template loader not searching app dirs - #10 by run_the_race

If try to customize the templates/django/widgets/file.html I don’t see any changes to my form upload fields (I can see that file.html just imports the input.html template and I can’t find where the template I see rendered is defined).

Is this even possible? Do I have to create a custom upload Field?

TIA

I think django-debug-toolbar will show you which templates are being used, which might help work out what’s going wrong.

Yes, the (very short) information for this is at Overriding built-in widget templates, along with the related information at TemplatesSetting

That’s the wrong location. That template is located in
django/forms/widgets/file.html
(within the templates directory)

Also, did you make the other settings changes as described?