Django rest framework where to write complex logic in serializer.py or views.py?
问题 I am new to Django Rest Framework. Using serializer and views a simple CRUD is easy. When the logics increase, it is quite confusing where to write logics in serializer or views . Some developers do prefer "Thick serializer and thin views" and some developers "Thick views and thin serializer". Maybe this is not a big issue and I think it is up to the developer whether to write more on views or serializer , but as a newbie what will be your suggestion to follow? Should I write more on views or