Skip to content
Advertisement

Django manual forms

I am trying to get my head around using manual forms. When I have in my forms.py checked that fields name and email is readonly

JavaScript

And in the html

JavaScript

But still when submitting without name and email, got error on missing both name and email. If anyone can help, much appreciated

Advertisement

Answer

You used placeholder in the input fields, when using POST, those values are not in the request. You can set them by using value="{{ value }}" instead.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement