3 ms·
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,
by blorenz 8y ago
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.
- Rjevski 8y agoJust wondering, what do you use instead of Forms for non-Javascript websites?
- scrollaway 8y agoFor what it's worth you can still use DRF serializers instead of forms on non-JS sites. DRF can take multipart/form-data
- collyw 8y agoPersonally I find Django's forms easier to work with, but maybe that's because i have spent more time with them.