How to make some fields optional in form in flask How to make some fields optional in form in flask flask flask

How to make some fields optional in form in flask


Try this as an example:

title = request.form.get('title')

This won't raise an exception if the "title" field is not supplied.