H
H
Holfamer2019-05-23 17:18:09
Validation
Holfamer, 2019-05-23 17:18:09

What is the right practice in Django Rest Framework validation for backend and frontend?

I am writing on the backend using Django Rest Framework. And I can’t understand what validation should be for models and serialisers. And how to send a validation message to the front so that a message is displayed above each input field, why the user entered the data incorrectly. What are the best practices? Explain, please.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question