Hi all,
in my template I have a manually created form (no forms.Form). This is populated with three fields that are of type “select” (video file, subtitle file, position of subtitle). When the view is called, the content of the directories is retrieved and passed to the template.
I didn’t understand, if I can use a custom form (inherited from forms.Form) to populate the content of the “select” options on the fly and then validate them. This time I search files in directories, but I’d also like to populate fields on the fly with content retrieved from the internet.
Since I manually populate the content of the “select” options, should I validate the fields? Is it recommended? If I can use a custom form (inherited from forms.Form) then I’d use "form.cleaned_data without having to manually validate the fields.
What is the best practice in this case?
Thanks in advance,
supermario18b