Django Rest Framework for Beginners - Simple CRUD API

  Рет қаралды 47,710

John Watson Rooney

John Watson Rooney

Күн бұрын

Django Rest Framework is a powerful tool to create fully functioning APIs with Django. In this video I will show you how to use its basic functionality to create a simple CRUD API that has a database, query parameters, and one-to-many database relationship.
Code: github.com/jhnwr/basic-crud-api
Support Me:
Patreon: / johnwatsonrooney
Oxylabs: oxylabs.go2cloud.org/aff_c?of... - code JR15
Amazon UK: amzn.to/2OYuMwo
Hosting: Digital Ocean: m.do.co/c/c7c90f161ff6
Gear Used: jhnwr.com/gear/ (NEW)
-------------------------------------
Disclaimer: These are affiliate links and as an Amazon Associate I earn from qualifying purchases
-------------------------------------
timestamps
00:00 Install and Setup
00:54 Models
02:49 Admin
03:17 Migrations
04:20 Project URLs
05:20 Serializers
06:50 API URLs
07:55 Views
11:42 Runserver
12:05 Usage

Пікірлер: 56
@albertgao7256
@albertgao7256 10 ай бұрын
so good, by far the best DRF quick video! no BS start from 0 and so detailed explaination. Just go straight into the tight integration with Django which yields the least code, so good, thanks bro!
@richardleeman3436
@richardleeman3436 4 ай бұрын
One of the best tutorials I have ever watched - straight to the point, no waffle.
@RealityslapsYT
@RealityslapsYT Жыл бұрын
I easily picked up, this is a quick and great refresher video... Thanks
@emilvoicu7189
@emilvoicu7189 Жыл бұрын
Very good content. Great job, John! :)
@CrisHood
@CrisHood Жыл бұрын
Cool tutorial John, thank you!
@fiendsgaming7589
@fiendsgaming7589 10 ай бұрын
Awesome introduction to framework, i liked it
@ulassahillioglu7682
@ulassahillioglu7682 3 ай бұрын
This is truly a lifesaver tutorial sir, thank you for your great videos!
@user-nc1cr8rf1h
@user-nc1cr8rf1h 2 ай бұрын
Straight to the point, awesome tutorial.
@samuelsampaio5611
@samuelsampaio5611 Жыл бұрын
Thank you for helping us to have a better society by sharing code. Great!!
@JohnWatsonRooney
@JohnWatsonRooney Жыл бұрын
Thanks!
@destinyobamwonyi8865
@destinyobamwonyi8865 6 ай бұрын
Thanks alot this vedio gave me a decent introduction into django rest framework
@ahmadabnabyy3510
@ahmadabnabyy3510 Жыл бұрын
This is simple, thanks!
@doodelinux
@doodelinux Жыл бұрын
Great tutorial John, I see that it is only 6 months old, so it is all very up to date, do you think it has had many changes in this period? with restframework lib or django? I followed step by step the same way as you, but when I call a location/id it is showing a dropdown menu with the other locations below and gives error when updating
@mindurownbussines
@mindurownbussines Жыл бұрын
Thank You Awesome Tutorial
@luxurycarshub8256
@luxurycarshub8256 2 жыл бұрын
Hey John , can you do a video on how to use Sitemap spider on scrapy ?
@dystopian_1
@dystopian_1 2 жыл бұрын
We love you, John
@JohnWatsonRooney
@JohnWatsonRooney 2 жыл бұрын
Thanks!
@brainiacmarco4014
@brainiacmarco4014 Жыл бұрын
great job, well done,
@rohitdalvi9361
@rohitdalvi9361 Ай бұрын
thank you very much you explained it very well🔥🔥🔥🔥🔥🔥🔥
@aadhilks2281
@aadhilks2281 5 ай бұрын
Very helpful one..🎉
@ivandengler296
@ivandengler296 Жыл бұрын
Great tutorial, so well explained! I have a question, if I wanted to add some business logic within this example, where should I add it? Let's say we have restrictions to create models, and they can only be created if some condition is True, where should I put this assertion? Thank you for this content again man, it's super helpful.
@JohnWatsonRooney
@JohnWatsonRooney Жыл бұрын
thanks! What I do is put business logic either in the models file if it fits there, or create a new file for it called logic or services
@CrazyFanaticMan
@CrazyFanaticMan 2 жыл бұрын
Would love to see the equivalent but for FastAPI Your content is 10/10 btw, been subscribed for a while now and love every upload
@JohnWatsonRooney
@JohnWatsonRooney 2 жыл бұрын
Thanks! Yes I was going to do a similar project with fastapi and flask then give my opinions on them all
@alexdin1565
@alexdin1565 2 жыл бұрын
@John Watson Rooney you are the best can you add more tut about Django channels and Redis (please real-time app)
@EngEzzadeen
@EngEzzadeen 2 ай бұрын
I want to get the Create, delete, update, view links to use them in other places, like Postman or any other app, How to do that?
@manupantha5031
@manupantha5031 Жыл бұрын
13:18 instead of itemLocation :1 is it possible to get itemLocation :Storage Unit ????
@shreyadubey7832
@shreyadubey7832 8 ай бұрын
Thanks for the best vedio of drf please let me know about strip payment gateway
@graczew
@graczew 2 жыл бұрын
Like and comment to feed algorithms.
@hrvojematosevic8769
@hrvojematosevic8769 2 жыл бұрын
Did my part
@ferkik.3245
@ferkik.3245 2 жыл бұрын
Thank you for the video. What theme do you use in the IDE?
@JohnWatsonRooney
@JohnWatsonRooney 2 жыл бұрын
Thanks, it’s One Dark for PyCharm
@mohitbodhija7089
@mohitbodhija7089 2 жыл бұрын
nice one
@athulyajose
@athulyajose 5 ай бұрын
Hi John! First of all, amazing content! I just want to know if you’re using SQLite for this project. If so, what is the alternative and what all changes should be made?
@JohnWatsonRooney
@JohnWatsonRooney 5 ай бұрын
I am yes - dropping in postgresql though is very easy in Django and I’d recommend that from the start for most applications
@scusate
@scusate 2 жыл бұрын
Thanks you so much man. Can you do a video on how to use REST API in React?
@JohnWatsonRooney
@JohnWatsonRooney 2 жыл бұрын
Hey thanks, front end isn't what I focus on but I have some ideas for videos on consuming APIs that should be of interest
@BradleyBell83
@BradleyBell83 2 жыл бұрын
Is this saving the data in a database or does it delete when you stop the server?
@JohnWatsonRooney
@JohnWatsonRooney 2 жыл бұрын
It's saved to the database
@heeku_
@heeku_ Жыл бұрын
just found out ur profile man, looks good!!!! i wonder why django and not fastapi for such tasks tho? or at least flask?
@JohnWatsonRooney
@JohnWatsonRooney Жыл бұрын
More videos coming for flask and fastapi - I do think django is great though it’s my go to
@heeku_
@heeku_ Жыл бұрын
@@JohnWatsonRooney would love to have a chat with you sometime mate :) btw just subbed, wonderful channel!
@donnylee9897
@donnylee9897 2 жыл бұрын
Hi, do you freelance? I really need someone with your skills to finish a product im working on?
@serge2033
@serge2033 2 жыл бұрын
cool
@felixkimutai8478
@felixkimutai8478 Жыл бұрын
I tried to run migrations but I am getting this error "ModuleNotFoundError: No module named 'rest_framework". Should I comment rest_framework in settings and continue?
@felixkimutai8478
@felixkimutai8478 Жыл бұрын
I found the error, thank you.☺
@mirkolantieri
@mirkolantieri 2 жыл бұрын
Very well explained for beginners! I personally prefer to create pytoml project file and recursively install the dependencies, also fix the possible conflicts when switching the versions. I might do a video where I explain this part
@dante7222
@dante7222 Жыл бұрын
Great tutorial. Tks. And if there are more than one location per item ? how can i set the model ? one to many relationship
@Good-and-Geeky
@Good-and-Geeky 10 ай бұрын
fast… I’ll watch again in slow motion to follow it better - Loads of useful info in here…. thanks
@JohnWatsonRooney
@JohnWatsonRooney 10 ай бұрын
fair enough, I'm trying to pace my content better now going forward
@aichakhorchani4487
@aichakhorchani4487 5 ай бұрын
jimmy neutron what are you doing here
@TheWagnerufpr
@TheWagnerufpr 2 жыл бұрын
So, Is THIS the Easiest Way to Build a CRUD API? shoud I learn Django? Is there another EASIEST WAY?
@hrvojematosevic8769
@hrvojematosevic8769 2 жыл бұрын
I recommend checking out the FastAPI project
@TheWagnerufpr
@TheWagnerufpr 2 жыл бұрын
@@hrvojematosevic8769 Nice thanks. I will see
@andrewraj3846
@andrewraj3846 2 жыл бұрын
voice is too low
@burhonabdullayev9372
@burhonabdullayev9372 Жыл бұрын
hi how are you your course is cool do you have telegram account ?
Django REST Framework - Build an API from Scratch
40:39
Caleb Curry
Рет қаралды 208 М.
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 169 М.
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 64 МЛН
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 161 МЛН
Best father #shorts by Secret Vlog
00:18
Secret Vlog
Рет қаралды 22 МЛН
How To Make a Django REST API - Full Tutorial & Deployment
40:18
Tech With Tim
Рет қаралды 64 М.
What is a REST API?
9:12
IBM Technology
Рет қаралды 1,5 МЛН
Django API Authentication using JWT Tokens
37:06
Scalable Scripts
Рет қаралды 173 М.
Django REST Framework Oversimplified
9:43
Dennis Ivy
Рет қаралды 309 М.
Django Rest Framework | Serializers & CRUD
22:40
Dennis Ivy
Рет қаралды 382 М.
programming projects that taught me how to code
9:49
isak
Рет қаралды 275 М.
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 1,3 МЛН
Cheapest gaming phone? 🤭 #miniphone #smartphone #iphone #fy
0:19
Pockify™
Рет қаралды 4,1 МЛН
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 25 МЛН
ГОСЗАКУПОЧНЫЙ ПК за 10 тысяч рублей
36:28
Ремонтяш
Рет қаралды 483 М.
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 373 М.