Explain the difference between an APIView and a ViewSet in DRF, and when is the 'magic' of a ViewSet a disadvantage?
Last updated
APIViewmaps HTTP methods to explicit handlers (get(),post()) and you wire URLs yourself.A
ViewSetgroups actions likelist()/retrieve()in one class, and aRouterauto-generates URLs (ModelViewSetgives full CRUD).The magic hurts when you need custom or non-standard endpoints. Implicit routing and logic hidden in mixins make URLs and debugging less obvious.
- https://www.interviewbit.com/django-interview-questions/
- https://www.scribd.com/document/911648753/Headout-Backend-Engineering-Interview-Questions-Bank-CLAUDE
- https://www.uplers.com/
- https://medium.com/@anas-issath/the-django-career-guide-from-junior-to-senior-fea1c3e52aa6
- https://www.quora.com/What-are-some-interview-questions-asked-or-can-be-asked-related-to-Django-and-Python
- https://www.reddit.com/r/developersIndia/
- https://internshala.com/blog/infosys-python-interview-questions/
- https://www.geeksforgeeks.org/python/django-interview-questions/
- https://foysalff.medium.com/12-advanced-django-interview-questions-for-experienced-developers-dbe654e21a45
- https://www.careers360.com/courses-certifications/articles/django-interview-questions-and-answers
- https://www.youtube.com/watch?v=OuBUUkQfBYM
- https://www.placementpreparation.io/blog/django-interview-questions-for-freshers/