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

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025
  • 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/cod...
    Discord : / discord
    Twitter : / codaffection
    #django #python #CodAffection

Комментарии • 99

  • @CodAffection
    @CodAffection  5 лет назад +3

    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 3 года назад

      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 3 года назад

      @Abdiel Amir instablaster =)

    • @abdielamir915
      @abdielamir915 3 года назад

      @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 3 года назад

      @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 3 года назад

      @Abdiel Amir Happy to help :D

  • @caio.mporto
    @caio.mporto 3 года назад +13

    Dude, this was insane! How could this be as simple as this? So good explained. Thank you so much!

  • @MariaOwoseni
    @MariaOwoseni 3 месяца назад

    This is 2024, four years after, close to 5 actually and I'm seeing this. Man, you made crud in django like a cheat-sheet.... insanely easy and comprehensive. I love you man. Thanks a lot

    • @CodAffection
      @CodAffection  3 месяца назад

      Thanks for the wonderful feedback.

  • @T4Crafter
    @T4Crafter 3 года назад

    Definitively the best part is 22:24. "Boooom!". Very good video, it helped a lot!!

  • @YujiLiuStreams
    @YujiLiuStreams 3 года назад

    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  3 года назад +1

      Thanks for your wonderful feedback.

  • @pranaydurge2243
    @pranaydurge2243 4 года назад +1

    Pls make more video sir. It is very useful and simple to understand😉

  • @TanvirAhmed14
    @TanvirAhmed14 Год назад

    The most easiest way to do this. Love ya...!

  • @hamisomary539
    @hamisomary539 2 года назад

    so amazing man may god bless yu

  • @SmartC2007
    @SmartC2007 3 года назад

    Thanks a lot for this video. Helped a lot. Greetings from Germany. :)

  • @karryvenkatesh5116
    @karryvenkatesh5116 4 года назад +3

    This is just Awesome. Thanks a lot for making such wonderful Tutorial.

  • @jspies2020
    @jspies2020 4 года назад

    Bro that video was amazing! Helped me out a lot. Thank you so much. Didn't think it can be that easy :)

  • @infinitesolutions3048
    @infinitesolutions3048 4 года назад +2

    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 года назад +1

      Thanks for your wonderful feedback. keep in touch.

  • @benmax2463
    @benmax2463 4 года назад

    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.

  • @parthhinge9921
    @parthhinge9921 3 года назад +1

    thanks dude

  • @harikishangullapalli
    @harikishangullapalli 3 года назад

    Awesome explanation. By far one of the best videos on dev :)

  • @devve7
    @devve7 4 года назад +2

    Muy buen video. Gran trabajo, me aclaró la gran interrogante de como hacer un crud en DJango.

  • @agents_of_hydra1859
    @agents_of_hydra1859 2 года назад

    Op video dude

  • @ouambakevin9775
    @ouambakevin9775 4 года назад +1

    tou are the king good bless you

  • @Olexiymarchenko
    @Olexiymarchenko 3 года назад

    Thanks a lot! Your tutorial helped me

  • @sushantbandhekar2157
    @sushantbandhekar2157 4 года назад +2

    Well Explained. Thank you

  • @yerielkim327
    @yerielkim327 4 года назад

    Best tutorial ever

  • @Bytux953
    @Bytux953 3 года назад

    thankyou so much

  • @VikasKumar-xr7hh
    @VikasKumar-xr7hh 4 года назад +1

    Nice explanation to whatever you showed (y)

  • @arnavsatrusal2480
    @arnavsatrusal2480 2 года назад

    Thank you so much !!

  • @asgeralia8802
    @asgeralia8802 2 года назад +1

    Awesome, sir can u pls database first in django

  • @arunzombie
    @arunzombie 3 года назад

    Awesome Tutorial, Thank you!

  • @viktorial.7545
    @viktorial.7545 3 года назад

    Very nice! Thank you!

  • @adityamahajan1238
    @adityamahajan1238 4 года назад +1

    thanks man, really appreciated it!

  • @ignorepeople9514
    @ignorepeople9514 2 года назад

    love this

  • @LetCode96666
    @LetCode96666 4 года назад

    Subscribed because this video was so clean and well described

  • @ananyamahapatra6597
    @ananyamahapatra6597 4 года назад

    You are just the best buddy🥳

  • @kumarr6195
    @kumarr6195 4 года назад

    great job Sir..

  • @Hayjed
    @Hayjed 5 лет назад +2

    A very nice tutorial. Please make a tutorial for Django Master-Detail CRUD operations. Thank you very much in advance.

  • @shubhamdandekar20
    @shubhamdandekar20 4 года назад

    Thank you man that exactly what i was looking for, it helped me a lot. Thank you again.

  • @fkamss
    @fkamss 3 года назад

    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() ?

  • @Magistrado1914
    @Magistrado1914 4 года назад +1

    Excellent videotutorial
    08/07/2020

  • @yashdaga2763
    @yashdaga2763 4 года назад +2

    BEST TUTORIAL!!! Can we integrate these APIs with angular?

  • @lassinaouattara1213
    @lassinaouattara1213 5 лет назад +1

    very nice video and contain thanks

    • @CodAffection
      @CodAffection  5 лет назад +2

      Glad you found this django rest api tutorial helpful.

  • @ayukeyongnyamndi4246
    @ayukeyongnyamndi4246 2 года назад

    Please, on my browser, the place for fullname is not displaying. And I cannot enter fullname for employee

  • @thomas-sinkala
    @thomas-sinkala 4 года назад

    Thanks man

  • @ashishdebnath3045
    @ashishdebnath3045 3 года назад

    which vs code extension your using for code suggestions of django?

  • @ShashwataSaha
    @ShashwataSaha 3 года назад

    in 5:55 how does the db.sqlite3 pop up?

  • @simosiren1758
    @simosiren1758 4 года назад +1

    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 4 года назад +2

      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

  • @SinaMojtahedi
    @SinaMojtahedi 5 лет назад +1

    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.

  • @jajatikesharimaharana5936
    @jajatikesharimaharana5936 4 года назад

    bOOm...... Subscribed it. Nice video

  • @minipr-b8f
    @minipr-b8f Год назад

    hey can some one help me where i should implement new functional requirements into this

  • @davidgallego1216
    @davidgallego1216 4 года назад

    Thanks :D

  • @khushbookumari6938
    @khushbookumari6938 4 года назад

    can we use git bash over cmd??

  • @nehabharti4737
    @nehabharti4737 5 лет назад +1

    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 4 года назад +1

      i have same problem, how to solve ?

    • @SamirJzVFX
      @SamirJzVFX 4 года назад

      @@bayualiffarisqi3251 same! only that and mobile

  • @hassanangular7180
    @hassanangular7180 5 лет назад

    Thank You

  • @deepanshuaggarwal7042
    @deepanshuaggarwal7042 4 года назад

    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??

  • @orlandog1979
    @orlandog1979 4 года назад

    Hi..How can I get the endpoints?

  • @vonputtkamer1673
    @vonputtkamer1673 4 года назад

    so awesome!! pls for the source code link sir

  • @9624252210
    @9624252210 4 года назад

    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)

  • @hemmah4650
    @hemmah4650 3 года назад

    how to remove this error 'StudentList' should either include a `serializer_class` attribute, or override the `get_serializer_class()` method.

  • @edgymurphy570
    @edgymurphy570 4 года назад +3

    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

  • @diwakermishra1749
    @diwakermishra1749 4 года назад +1

    The github file is incomplete, you didn't add the employeeapi folder. Please add that too.

    • @CodAffection
      @CodAffection  4 года назад +1

      thanks for the comment. it's done now.

  • @siddhantaswal537
    @siddhantaswal537 4 года назад +1

    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.

  • @nehabharti4737
    @nehabharti4737 5 лет назад

    AttributeError: partially initialized module 'employeeapi.serializers' has no attribute 'EmployeeSerializer' (most likely due to a circular import)

    • @UjablablaHD42
      @UjablablaHD42 4 года назад

      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

  • @diego.coder26
    @diego.coder26 5 лет назад

    how can add button delete and update in client django rest framework?

  • @devgit4657
    @devgit4657 5 лет назад +2

    github ?

  • @saqibhaider5525
    @saqibhaider5525 4 года назад

    In router.py when I type "from employeeapi .viewset" the employeeapi doesnt show up...any help?

    • @UjablablaHD42
      @UjablablaHD42 4 года назад

      same, then i just copy-pasteing from his github, and boom!, works for me

    • @UjablablaHD42
      @UjablablaHD42 4 года назад

      btw i copy-pasteing from viewsets.py and router.py just line 1

  • @thiruneelagandan2799
    @thiruneelagandan2799 2 года назад

    The first line Workon djangoenv is not working

  • @fahadfoysal664
    @fahadfoysal664 5 лет назад

    Nice tutorial ..Please upload more videos on django..

  • @samatzhussipov1139
    @samatzhussipov1139 4 года назад

    bro how u solve problem with pylint ?

    • @samatzhussipov1139
      @samatzhussipov1139 4 года назад

      Solved With -- ruclips.net/video/TH5_2Gi9nhw/видео.html

  • @puspitasahoo3420
    @puspitasahoo3420 3 года назад

    17:09

  • @thecodes
    @thecodes 4 года назад

    delete??? update???

  • @puspitasahoo3420
    @puspitasahoo3420 3 года назад

    10:00

  • @puspitasahoo3420
    @puspitasahoo3420 3 года назад +1

    10.00

  • @Historic_videoss
    @Historic_videoss 3 года назад +1

    Thank you sir

  • @Sravani_Chanu
    @Sravani_Chanu 2 года назад

    thank a lot brother