How to use ASYNC in DRF

2022-10-06 Thread Saifullah Shahen
In the Django Rest Framework, how can i use async because Django supports async. So, how can i use that async in DRF class based view. If you have done async drf, please provide me a example. Thanks. -- You received this message because you are subscribed to the Google Groups "Django REST fram

Re: serializer.update vs viewset.perform_update, etc

2022-10-06 Thread Anye Shafer
This, exactly. Global requirements (either validation or save activities) should be handled by the serializer, so that as you add new endpoints you can ensure those requirements are enforced consistently. Otherwise, you run the risk that someone who doesn't fully understand these global requi