0

I am new to Flask and I found this Flask_WTF or Flask Forms. I just dont see the need for it. We can do similar things with HTML. I understand that Flask forms have internal validations but we can provide better javascript client side validations which can validate data without server trip. What is the real need of using Flask Forms? Would not HTML forms will be better so we can provide inline styling if required and will be easy to use with bootstrap.

Please suggest.

user20072008
  • 359
  • 7
  • 23

1 Answers1

2

You can use flask WTforms wherever and for whatever you need would need to use regular html forms.

There a a few handy things WTF forms provide like CSRF protection and easy to use macros etc.

You do not have to use them they just make some things easier

Same as asked here Why use WTForms instead of just posting with HTML

Clint
  • 167
  • 2
  • 11