Custom HTML as FormField in Django

37 Views Asked by At

I have a project going in which i'd like to be able to have some custom html inside a form. The reason being that i would for example like to have a file/image browser inside my form so that i could select an image and have the url posted with the form without constantly having to modify the form and/or recreate the file browser inside a template.

After some research it seems to me that going with custom formfields looks like the way to go, although i can't seem to figure out if it's possible to have a custom formfield output custom html when the form is generated. It may be my google skills, although i kind of lean to thinking that there isn't really that much documentation on the subject.

Has anybody worked with something like this before?

0

There are 0 best solutions below