Skip to content
Advertisement

Validation of WTForms in Flask using Postman

I am trying to Create a user using WTForms. But always I am getting validation error when checked using POSTMAN. I am not sure why this happens

routes.py

JavaScript

forms.py

JavaScript

models.py

JavaScript

Postman screen shot

enter image description here

what can be the reason for validation always failing in this case. Thanks in advance

Advertisement

Answer

For this to work from POSTMAN, set the config

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