oowowaee
oowowaee

Reputation: 1695

Django, Django-Angular and the Django Rest Framework

We are getting started using Angular in our existing Django app, and I have seen mention of the Django Rest Framework as well as Django-Angular library. The DRF has been very easy to use, and seems to make a lot of sense when using a framework like Angular. That said, there also seem to be some great features available in the Django-Angular library - like being able to generate client side validation based on the server side validation rules.

But it seems like Django-Angular is really based on django forms, and the DRF is built around serializers. Is there any way to use these two together, and otherwise is there any way to automate client side validation rules based on DRF serializer validation rules?

Upvotes: 0

Views: 284

Answers (1)

MikeVelazco
MikeVelazco

Reputation: 905

Why don't you make the validatons direct in the model? I have no experience with DRF, but I suppose that it checks the model validations

Upvotes: 1

Related Questions