django - form has no errors but form.is_valid() doesn't validate

后端 未结 2 653
面向向阳花
面向向阳花 2020-12-08 07:33

I have a form that for some reason it it doesn\'t throw any errors (if user adds data in the text field) but form.is_valid() doesn\'t validate. Any ideas?

2条回答
  •  鱼传尺愫
    2020-12-08 08:22

    From your template, add the following:

    {{ form.errors }}
    {{ form.non_field_errors }}
    

    Do you see any errors from the above?

提交回复
热议问题