Re: Extend FAQ with "How do I get Django and my JS framework to work together?"

2019-02-06 Thread Dan Davis
The problem with ModelForm is translating validation to something front-end, like jquery Validator. Here, DRF does better, because swagger spec includes something like jsonschema (neither are a standard as I used to know them, in the WSDL/SOAP days), and so you can use jsonschema validation to

Re: Extend FAQ with "How do I get Django and my JS framework to work together?"

2019-02-06 Thread Dmitriy Sintsov
Speaking of Rails AJAX forms. It's quite trivial to submit Django ModelForm in Javascript AJAX request. It's a bit harder to have the customizable success action and to display the field validation errors via AJAX response. I implemented AJAX viewmodels for that: