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