Build a Django REST API with the Django Rest Framework (DRF) in under 10 minutes

preview_player
Показать описание
Welcome to this Django Rest Framework (DRF) crash course where we set up a REST endpoint using Django and the Django Rest Framework.

Want to see the source code? Comment below and let me know 👇

Enroll in my Django Bootcamp: Zero to Mastery (use code FRIENDS10 for 10% off!) 🎉

In this video we'll:
1. Create a Django project & install Django Rest Framework
2. Setup an application 'pets' to keep track of your pets
3. Create the models, views, and urls to list out the pets
4. Setup the DRF serializers to transform pets into JSON
5. Seed the database with some pet data via the Django shell

Lets get started!

Timestamps:
00:00 Intro to what we'll be building
00:20 Project and app setup
01:40 Pet model creation
02:25 DRF serializers
03:50 Django view creation
05:45 URL endpoint
06:22 Making migrations and seeding database with data
07:50 Working API endpoint!
08:24 Outro - Like + Sub 👍

The Django REST framework (DRF) is a toolkit built on top of the Django web framework that reduces the amount of code you need to write to create REST interfaces.
Рекомендации по теме
Комментарии
Автор

Hope you enjoy this quick run through of DRF. If you want to see the source code let me know here in the comments and I can upload it to GitHub!

dominicvacchiano
Автор

hi buddy, i really liked your videos and your way of teaching is awsome,

jeevandiamond
Автор

Looking for something like this. Love your video

chijiokedivine
Автор

keep going on buddy, i want to know the views and models and coding part in the django
class based or function based, please share me advance coding logics

jeevandiamond