Agreed. Django Forms' hay-day was back in the Request/Response rendering of page state era of the web. They introduced the ability to bind data for validation, rendering in the Template, programmatic generation based on Model and sanitization of form input data. They still can be utilized loosey-goosey on the backend in the world of APIs. Why bother when better tooling now exists? The use-case of Forms now is the Admin side of the house where they can facilitate the CRUD of the Models.
Just wondering, what do you use instead of Forms for non-Javascript websites?
Re:Django Newbie Mistakes
by scrollaway on Thursday June 28, 2018 @03:24PM
(#17419738)
For what it's worth you can still use DRF serializers instead of forms on non-JS sites. DRF can take multipart/form-data
Nowadays I use DRF for everything though. Serializers > Forms. And React > Templates.
As for the ORM, I long for a world where the ORM is replaceable by SQLAlchemy. Django's ORM is nice and simple, but as soon as you want typed complex queries, SQLAlchemy is really good.