I have a widgets.py file in the utils folder.
class CustomClearableFileInput(ClearableFileInput):
clear_checkbox_label = _("Delete")
template_name = "components/widgets/clearable_file_input.html"
And the file storage structure in my main templates looks like this.
.
└── templates
└── components
└── widgets
└── clearable_file_input.html
But when I run it I get Error:
" TemplateDoesNotExist at components/widgets/clearable_file_input.html"
I have set "DIRS": [Path.joinpath(BASE_DIR, "templates")], in my project.
But if I put clearable_file_input.html in the templates of one of my apps and set template_name to that app it works.
But I want to have that clearable_file_input.html in the main templates, how do I do that? Is there a way?
