Django Rest API CRUD - GET, POST, PUT and DELETE

  Рет қаралды 103,517

CodAffection

CodAffection

4 жыл бұрын

Django Rest Framework API CRUD Operations with PostgreSQL.
In this Python Django restful API tutorial, we will discuss how to implement CRUD operations with PostgreSQL using web methods - GET, POST, PUT, and DELETE.
📂 GitHub Repository
► bit.ly/2rMJzie
💖 Buy me a Coffee
➤ bit.ly/3L36ut4 (PayPal)
➤ bit.ly/3VF0iPT (Razorpay)
🌀 Related Videos
bit.ly/2NebfEZ : Complete Django CRUD
bit.ly/33YmlUu : Django API CRUD
bit.ly/35XPErK : Django TODO with PostgreSQL
🔗 Find me in
Udemy : bit.ly/3RtyQSB
Facebook : / codaffection
GitHub : github.com/codaffection
Discord : / discord
Twitter : / codaffection
#django #python #CodAffection

Пікірлер: 98
@CodAffection
@CodAffection 4 жыл бұрын
goo.gl/RFY5C2 : Subscribe to CodAffection goo.gl/bPcyXW : Buy me a Coffee bit.ly/2NebfEZ : Django Form for CRUD Operations bit.ly/35XPErK : Django To-Do App with Postgres goo.gl/ijPZQk : .Net Core Web API CRUD with Angular 7 goo.gl/AL18CP : Asp.Net Core MVC CRUD
@abdielamir915
@abdielamir915 2 жыл бұрын
I guess Im randomly asking but does any of you know a trick to get back into an instagram account?? I was stupid forgot the account password. I love any help you can give me.
@colinellis460
@colinellis460 2 жыл бұрын
@Abdiel Amir instablaster =)
@abdielamir915
@abdielamir915 2 жыл бұрын
@Colin Ellis Thanks so much for your reply. I found the site through google and I'm trying it out atm. Seems to take a while so I will reply here later when my account password hopefully is recovered.
@abdielamir915
@abdielamir915 2 жыл бұрын
@Colin Ellis it worked and I now got access to my account again. I'm so happy:D Thank you so much you saved my account !
@colinellis460
@colinellis460 2 жыл бұрын
@Abdiel Amir Happy to help :D
@miquelutti1705
@miquelutti1705 3 жыл бұрын
Dude, this was insane! How could this be as simple as this? So good explained. Thank you so much!
@karryvenkatesh5116
@karryvenkatesh5116 4 жыл бұрын
This is just Awesome. Thanks a lot for making such wonderful Tutorial.
@jspies2020
@jspies2020 3 жыл бұрын
Bro that video was amazing! Helped me out a lot. Thank you so much. Didn't think it can be that easy :)
@LetCode96666
@LetCode96666 3 жыл бұрын
Subscribed because this video was so clean and well described
@YujiLiuStreams
@YujiLiuStreams 2 жыл бұрын
Man, this is awesome! I tried to understand this process by many-many other videos, but your video - gives me full understanding! Thank you very much!
@CodAffection
@CodAffection 2 жыл бұрын
Thanks for your wonderful feedback.
@harikishangullapalli
@harikishangullapalli 3 жыл бұрын
Awesome explanation. By far one of the best videos on dev :)
@benmax2463
@benmax2463 3 жыл бұрын
This is really helpful and organized. Especially using viewset is very comfortable to create and test rest API. Thanks a lot. I wish you to post many videos like this. Cheer Up.
@mmhgarcia
@mmhgarcia 3 жыл бұрын
Muy buen video. Gran trabajo, me aclaró la gran interrogante de como hacer un crud en DJango.
@shubhamdandekar20
@shubhamdandekar20 3 жыл бұрын
Thank you man that exactly what i was looking for, it helped me a lot. Thank you again.
@arunzombie
@arunzombie 3 жыл бұрын
Awesome Tutorial, Thank you!
@adityamahajan1238
@adityamahajan1238 3 жыл бұрын
thanks man, really appreciated it!
@T4Crafter
@T4Crafter 2 жыл бұрын
Definitively the best part is 22:24. "Boooom!". Very good video, it helped a lot!!
@Olexiymarchenko
@Olexiymarchenko 2 жыл бұрын
Thanks a lot! Your tutorial helped me
@infinitesolutions3048
@infinitesolutions3048 4 жыл бұрын
Thanks man you've saved me a whole lot I've been wandering around to do this but your tutorial is so cool and the concepts are well explained GOD Bless You Once again thank you for getting my hands really dirty in postgresql in setting it up on ubuntu 20.04 I've never used it but you have made it seem awesome to use for me so this is a 2 in 1 for me gain for me :D
@CodAffection
@CodAffection 4 жыл бұрын
Thanks for your wonderful feedback. keep in touch.
@hamisomary539
@hamisomary539 Жыл бұрын
so amazing man may god bless yu
@pranaydurge2243
@pranaydurge2243 4 жыл бұрын
Pls make more video sir. It is very useful and simple to understand😉
@viktorial.7545
@viktorial.7545 3 жыл бұрын
Very nice! Thank you!
@ananyamahapatra6597
@ananyamahapatra6597 4 жыл бұрын
You are just the best buddy🥳
@VikasKumar-xr7hh
@VikasKumar-xr7hh 4 жыл бұрын
Nice explanation to whatever you showed (y)
@yerielkim327
@yerielkim327 3 жыл бұрын
Best tutorial ever
@SmartC2007
@SmartC2007 2 жыл бұрын
Thanks a lot for this video. Helped a lot. Greetings from Germany. :)
@TanvirAhmed14
@TanvirAhmed14 8 ай бұрын
The most easiest way to do this. Love ya...!
@SinaMojtahedi
@SinaMojtahedi 4 жыл бұрын
I appreciate your efforts. Would you mind to give some information on how to upload a csv file and save the interiors of the file into postgresql tabel.
@Sravani_Chanu
@Sravani_Chanu Жыл бұрын
thank a lot brother
@arnavsatrusal2480
@arnavsatrusal2480 2 жыл бұрын
Thank you so much !!
@kumarr6195
@kumarr6195 3 жыл бұрын
great job Sir..
@parthhinge9921
@parthhinge9921 2 жыл бұрын
thanks dude
@sushantbandhekar2157
@sushantbandhekar2157 4 жыл бұрын
Well Explained. Thank you
@CodAffection
@CodAffection 4 жыл бұрын
Glad you liked it.
@ignorepeople9514
@ignorepeople9514 2 жыл бұрын
love this
@Hayjed
@Hayjed 4 жыл бұрын
A very nice tutorial. Please make a tutorial for Django Master-Detail CRUD operations. Thank you very much in advance.
@ouambakevin9775
@ouambakevin9775 4 жыл бұрын
tou are the king good bless you
@Historic_videoss
@Historic_videoss 2 жыл бұрын
Thank you sir
@thomas-sinkala
@thomas-sinkala 4 жыл бұрын
Thanks man
@fkamss
@fkamss 2 жыл бұрын
Thanks for the detail explanation, I've a question, why do we need querySet? If I need create api only still do I need querySet with model.objects.all() ?
@Bytux953
@Bytux953 3 жыл бұрын
thankyou so much
@hassanangular7180
@hassanangular7180 4 жыл бұрын
Thank You
@agents_of_hydra1859
@agents_of_hydra1859 2 жыл бұрын
Op video dude
@davidgallego1216
@davidgallego1216 3 жыл бұрын
Thanks :D
@Magistrado1914
@Magistrado1914 4 жыл бұрын
Excellent videotutorial 08/07/2020
@ashishdebnath3045
@ashishdebnath3045 3 жыл бұрын
which vs code extension your using for code suggestions of django?
@diego.coder26
@diego.coder26 4 жыл бұрын
how can add button delete and update in client django rest framework?
@jajatikesharimaharana5936
@jajatikesharimaharana5936 3 жыл бұрын
bOOm...... Subscribed it. Nice video
@deepanshuaggarwal7042
@deepanshuaggarwal7042 3 жыл бұрын
Hi bro , your videos are very good. But, I have 1 problem while practicing. Whenever, I request POST, django automatically calls GET method after completing POST request... why is it so??
@user-xh1zh2pw3d
@user-xh1zh2pw3d 10 ай бұрын
hey can some one help me where i should implement new functional requirements into this
@lassinaouattara1213
@lassinaouattara1213 4 жыл бұрын
very nice video and contain thanks
@CodAffection
@CodAffection 4 жыл бұрын
Glad you found this django rest api tutorial helpful.
@ayukeyongnyamndi4246
@ayukeyongnyamndi4246 Жыл бұрын
Please, on my browser, the place for fullname is not displaying. And I cannot enter fullname for employee
@ShashwataSaha
@ShashwataSaha 3 жыл бұрын
in 5:55 how does the db.sqlite3 pop up?
@khushbookumari6938
@khushbookumari6938 3 жыл бұрын
can we use git bash over cmd??
@simosiren1758
@simosiren1758 4 жыл бұрын
Hi, At the beginning you do workon djanoenv. It isnt working for me. I tried pip install workon, and still didnt work. Can I do this without doing that first command as in the django mvc video you dont do that workon command?
@PawelosKompanieros
@PawelosKompanieros 3 жыл бұрын
Perhaps a very late response, you have to: pip install virtualenvwrapper-win Then go to your directory of your project and: mkvirtualenv djangoenv This should automatically activate the environment with the 'workon' command but if it doesn't then type in workon djangoenv
@nehabharti4737
@nehabharti4737 4 жыл бұрын
AttributeError: partially initialized module 'employeeapi.serializers' has no attribute 'EmployeeSerializer' (most likely due to a circular import)
@UjablablaHD42
@UjablablaHD42 3 жыл бұрын
same, then i just copy-pasteing from his github, and boom!, works for me. btw i copy-pasteing from viewsets.py and router.py line 1
@hemmah4650
@hemmah4650 3 жыл бұрын
how to remove this error 'StudentList' should either include a `serializer_class` attribute, or override the `get_serializer_class()` method.
@orlandog1979
@orlandog1979 3 жыл бұрын
Hi..How can I get the endpoints?
@yashdaga2763
@yashdaga2763 4 жыл бұрын
BEST TUTORIAL!!! Can we integrate these APIs with angular?
@CodAffection
@CodAffection 4 жыл бұрын
sure.
@asgeralia8802
@asgeralia8802 Жыл бұрын
Awesome, sir can u pls database first in django
@nehabharti4737
@nehabharti4737 4 жыл бұрын
after making the migration ,in the database table only pk=1 is reflecting.where i am going wrong ? help me with it Thank you!
@bayualiffarisqi3251
@bayualiffarisqi3251 3 жыл бұрын
i have same problem, how to solve ?
@SamirJzVFX
@SamirJzVFX 3 жыл бұрын
@@bayualiffarisqi3251 same! only that and mobile
@siddhantaswal537
@siddhantaswal537 4 жыл бұрын
In my serializer file it's showing module error not found for rest_framework
@bhanupratap8340
@bhanupratap8340 2 жыл бұрын
I was using different versions of python, so try switching versions and see which one is working (switch interpreter), this worked for me.
@9624252210
@9624252210 3 жыл бұрын
What about DELETE? While deleting the record why it shows a 204 status code? How can I set a proper message with a status code?
@KaviKumarSumit
@KaviKumarSumit 2 жыл бұрын
127.0.0.1:8000/api/employee/1/ (do the same as you update put id value)
@fahadfoysal664
@fahadfoysal664 4 жыл бұрын
Nice tutorial ..Please upload more videos on django..
@CodAffection
@CodAffection 4 жыл бұрын
Sure. thanks for the feedback.
@diwakermishra1749
@diwakermishra1749 4 жыл бұрын
The github file is incomplete, you didn't add the employeeapi folder. Please add that too.
@CodAffection
@CodAffection 4 жыл бұрын
thanks for the comment. it's done now.
@vonputtkamer1673
@vonputtkamer1673 3 жыл бұрын
so awesome!! pls for the source code link sir
@saqibhaider5525
@saqibhaider5525 3 жыл бұрын
In router.py when I type "from employeeapi .viewset" the employeeapi doesnt show up...any help?
@UjablablaHD42
@UjablablaHD42 3 жыл бұрын
same, then i just copy-pasteing from his github, and boom!, works for me
@UjablablaHD42
@UjablablaHD42 3 жыл бұрын
btw i copy-pasteing from viewsets.py and router.py just line 1
@edgymurphy570
@edgymurphy570 4 жыл бұрын
The github file is incomplete, you didn't add the employeeapi folder.
@CodAffection
@CodAffection 4 жыл бұрын
Thanks for the comment. Missing files/folder is added.
@edgymurphy570
@edgymurphy570 4 жыл бұрын
@@CodAffection Thanks
@thiruneelagandan2799
@thiruneelagandan2799 Жыл бұрын
The first line Workon djangoenv is not working
@thiruneelagandan2799
@thiruneelagandan2799 Жыл бұрын
Pls any one reply
@samatzhussipov1139
@samatzhussipov1139 4 жыл бұрын
bro how u solve problem with pylint ?
@samatzhussipov1139
@samatzhussipov1139 4 жыл бұрын
Solved With -- kzbin.info/www/bejne/inmYkGV9np6hntk
@devgit4657
@devgit4657 4 жыл бұрын
github ?
@thecodes
@thecodes 3 жыл бұрын
delete??? update???
@puspitasahoo3420
@puspitasahoo3420 2 жыл бұрын
17:09
@puspitasahoo3420
@puspitasahoo3420 2 жыл бұрын
10.00
@puspitasahoo3420
@puspitasahoo3420 2 жыл бұрын
10:00
@ZIRRAMA
@ZIRRAMA 2 жыл бұрын
mans using the computer with fucking 1 pixel font size
Django REST Framework - Build an API from Scratch
40:39
Caleb Curry
Рет қаралды 208 М.
Django Rest Framework | Serializers & CRUD
22:40
Dennis Ivy
Рет қаралды 382 М.
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 17 МЛН
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 5 МЛН
New model rc bird unboxing and testing
00:10
Ruhul Shorts
Рет қаралды 23 МЛН
GET, UPDATE, POST, DELETE - Function Views (Django REST framework)
17:45
Complete Django CRUD Operations
1:11:54
CodAffection
Рет қаралды 315 М.
How to build a FastAPI app with PostgreSQL
27:37
Eric Roby
Рет қаралды 40 М.
VICKY KAUSHAL REACTS TO VICKY KAUSHAL MEMES ft. VICKY KAUSHAL
26:42
Tanmay Bhat
Рет қаралды 5 МЛН
Django Rest Framework for Beginners - Simple CRUD API
14:22
John Watson Rooney
Рет қаралды 47 М.
REST API Crash Course - Introduction + Full Python API Tutorial
51:57
WebRTC Crash Course
1:10:06
Hussein Nasser
Рет қаралды 223 М.
Build Django To-Do App with PostgreSQL
55:43
CodAffection
Рет қаралды 55 М.
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 17 МЛН