I was there to. And after some reading, i arrive to something i modeled
here. https://github.com/gonzaloamadio/django_business_logic

Basically, add one more layer, the business logic layer. And do all
operations there. Including validations.
And whenever you need to  do an operation, from a view, or internal
executions, call a function that is declared there.



El lun., 9 mar. 2020 a las 14:16, Mike Hemelberg (<m...@dealeros.io>)
escribió:

> Hello,
>
>
> Our application API has to support 2 different types of clients: Mobile
> and Web. Our APIs also need to support two different applications: Consumer
> and Admin.
>
> I have been researching and there isn't a clear recommendation. I could
> not find a strong view point or recommendation in DRF documentation.
>
> There are so many options but the community doesn't seem to have a strong
> viewpoint either. There are Fat Models, Model Managers, additional Django
> service layers, DRF serializers.
>
> Where do you recommend we place the different types of logic? business,
> model, validation and UI logic?
>
>
> Thank you,
>
> Mike
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-rest-framework+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-rest-framework/648ec717-2783-44c6-9700-c158fd446b58%40googlegroups.com
> <https://groups.google.com/d/msgid/django-rest-framework/648ec717-2783-44c6-9700-c158fd446b58%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
--------
Gonzalo Amadio

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/CANyTv7q9rvx1R%2BqLt4bd3geV11FF6_s6pt0AFBdnBt4PATDY%2BQ%40mail.gmail.com.

Reply via email to