django rest framework - What's a simple way to raise ValidationError in action-decorated method? -


I think my decoration work may be able to increase the validation error in some cases. How do I return 400 error with json in a simple way, or at least error?

OK, I thought it: I should take an APIException, which enclose detailed message in Jason is.


Comments

Popular posts from this blog

Editing Python Class in Shell and SQLAlchemy -

import - Python ImportError: No module named wmi -

uislider - In a MATLAB GUI, how does one implement a continuously varying slider from a GUIDE created .m file? -