Class Views: Django Rest Framework Crash Course Beginners Tutorial

preview_player
Показать описание
We will go over class based views. We will take a look at how to set up a basic class based view in the Django Rest Framework. We will go over how to handle get and post requests in a class based view and how to set up authentication, permissions and other customizations on the view.

Starting Code:

Ending Code:

Django Rest Framework Class Based Views Docs:

Legion Script:
Рекомендации по теме
Комментарии
Автор

2 questions:

1) You spelt permisson_classes instead of permission_classes - not sure how it still worked
2) In the class-based views how did the data (get and post request) got retrieved and saved without using a serializer for the Artist class?

codedjango