InterviewSolution
Saved Bookmarks
| 1. |
Explain the validators class of WTForms in Flask? |
|
Answer» A validator simply takes an input, checks that it meets some criteria, such as a string length limit, and then returns. If the validation fails, a ValidationError is raised. This method is QUITE straightforward and ADAPTABLE, allowing you to link any number of VALIDATORS onto fields. In Flask, the validators class of WTForm are listed below:
|
|