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

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -