Ready to Start Learning?

Sign in to check if you already have access, or get started with a purchase or membership.

Django Rest Framework

Learn how to build REST APIs with Django and the Django Rest Framework. We will also build a Python client along side of our Django project so we can actually use our REST API in a practical hands-on example.
Web APIs, also know as REST APIs, are how applications can communicate with each other. Essentially, we'll design a standard way to enable our Django project (through Django REST Framework) to communicate with nearly anything else such as:
  • React.js/Vue/Angular apps
  • Phone & Table Native Apps (like iOS or Andriod)
  • Django to Node.js communication or Django to FastAPI, or Django to Ruby on Rails

References

We've partnered with Algolia to bring you this series and even our website search!
Django Rest Framework

Lifetime access to this course

or get access to 500+ courses with a membership

Lessons

1

Welcome

2:01

2

Tools we are using

2:40

3

Setup Python Virtual Environment, Install Req, and Start Django

7:01

4

Creating a Python API Client

15:18

5

Run Django Project

4:11

6

Create your first API View

5:47

7

Echo GET Data

10:01

8

Django Model Instance as API Response

7:32

9

Django Model Instance to Dictionary

5:54

10

Rest Framework View & Response

3:42

11

Django Rest Framework Model Serializers

10:15

12

Injest Data with Django Rest Framework Views

12:17

13

Django Rest Framework Generics RetrieveAPIView

8:46

14

Django Rest Framework CreateAPIView

6:00

15

Django Rest Framework ListAPIView & ListCreateAPIView

2:37

16

Using Function Based Views For Create Retrieve or List

10:37

17

UpdateAPIView & DestroyAPIView

8:45

18

Mixins and a Generic API View

12:25

19

Session Authentication & Permissions

6:45

20

User & Group Permissions with DjangoModelPermissions

7:30

21

Custom Permissions

14:48

22

Token Authentication

13:56

23

Default Django Rest Framework Settings

7:51

24

Using a Custom Mixin for Permissions

5:33

25

ViewSets & Routers

12:33

26

URLs, Reverse, & Serializers

7:53

27

Model Serializer Create & Update Methods

7:57

28

Custom Validation with Serializers

11:14

29

Request User Data & Customize View QuerySet

15:37

30

Related Fields & Foreign Key Serializer

15:44

31

Pagination

8:03

32

A Django Based Search for our Product API

15:54

33

Building your Search Engine on Algolia

21:17

34

Algolia Search Client for Django

20:25

35

Unified Design of Serializers & Indices

16:24

36

Django Rest Framework JWT Authentication with simplejwt

13:39

37

Login via JavaScript Client

15:50

38

Handle Request Blocked by CORS via django-cors-headers

7:27

39

Using JWT with JS Client

15:58

40

Search via REST API & JS Client

8:43

41

Algolia InstantSearch.js

11:52

42

Thank you & next steps

1:05