exception for non existing parameter in FLASK

后端 未结 3 1372
梦谈多话
梦谈多话 2021-01-02 06:57

I have a form that sends parameters. In my form I have a checkbox. If my checkbox is not checked then I will not get any parameters.

If in my module I have :

3条回答
  •  被撕碎了的回忆
    2021-01-02 07:32

    I had similar issue during validation of single boolean field.

    I solved it by using remember = form.rememberme.data instead of request.form['remember_me']

提交回复
热议问题