I have a Django form which I\'m validating in a normal Django view. I\'m trying to figure out how to extract the pure errors (without the HTML formatting). Below is the code
For Django 1.7+ use Form.errors.as_json() or something like this:
errors = {f: e.get_json_data() for f, e in form.errors.items()} return json_response(success=False, data=errors)