I have a model form that lets users upload images. But when we click submit on that form, it's not being uploaded into s3.
I have registered the same model in admin and the upload works through admin panel. So I know my s3 has been configured properly.
I have made it to return a Httpresponse called error when the form is invalid and it's returning that when I click subit
I am very new to django and can't wrap my head around this. Appreciate any help. Thank You
I have a model form that lets users upload images. But when we click submit on that form, it's not being uploaded into s3. I have registered the same model in admin and the upload works through admin panel. So I know my s3 has been configured properly. I have made it to return a Httpresponse called error when the form is invalid and it's returning that when I click subit I am very new to django and can't wrap my head around this. Appreciate any help. Thank You
My model
My ModelForm
My views function
HTML