31 ms·
If you're building a form in React why do you even bother with django forms when there's Django Rest Framework?
by Daishiman 10y ago
If you're building a form in React why do you even bother with django forms when there's Django Rest Framework?
- scrollaway 10y agoI do use DRF; but it's quite painful to have to set up all the intermingling between the API urls and the actual form definitions. I don't use Django forms; you will generally want a single source of truth for the forms and it kind of has to live in the JS, but then that makes it inaccessible to Django... For large apps it makes sense to do it this way. For smaller apps it really sucks.