Which forms libaray for use with Flask and SQLAlchemy

I am working on a Flask and SQLAlchemy based web application. Most forms / models are interconnected and therefore it is necessary to use a library that is flexible enough to handle several forms and allows you to easily override [or create] default widgets.

Can someone recommend a library of good forms (other than formal). I really liked the forms of django, but I wonder if there is an alternative.

+4
source share
2 answers

WTForms should suit your taste, with Flask and SQLAlchemy.

+12
source

You can also use the "warp" that repoze.BFG aka Pylons2 currently supports.

It has some good β€œmagic” methods for creating a collection of forms and adding new forms on the fly.

If you liked django then warping might be a good choice.

+1
source

Source: https://habr.com/ru/post/1333688/


All Articles