News for hackers. Stuff that matters.
Re:Django REST framework 3.5 by Alex3917 on Thursday October 20, 2016 @10:53PM (#12757857)
> I like DRF, but I think its allow-by-default mentality is a security risk.

Completely agree. But DRF is useful even if you don't use any of the serializers. E.g. you can just use it to handle auth, requests, and responses, and then validate things by hand and save them directly to the Django model. You still pretty much need serializers when validating image files because you can't trigger the Django code to do this by saving to the model directly, but for everything else it's often more readable just to serialize and deserialize by hand.

There are no comments on this comment yet.