Python Django MongoDB CRUD Tutorial | CREATE , READ , UPDATE , DELETE Operation

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.พ. 2025
  • #mongodb #django #djongo
    Python Django MongoDB CRUD Tutorial | CREATE,READ,UPDATE,DELETE Operation
    Tutorial Cover :
    1.How to Insert Document in Mongodb in Django
    2.How to Update Document in Mongodb in Django
    3.How to Read All Mongodb Document in Django
    4.How to Fetch Single Document by _id in Django
    5.How to Delete Document in Django
    6.CRUD Operation Mongodb Django Example
    7.Django MongoDB CRUD Tutorial
    8. Insert List of Document in Mongodb in Django
    9. Insert Object Document in Mongodb in Django
    Tutorial Link : • Python Django MongoDB ...
    Join Our Telegram Channel to Stay Updated : t.me/supercoders
    Source Code : github.com/hac...
    Intro music : / @mikhael_bureau

ความคิดเห็น • 66

  • @davidjonson303
    @davidjonson303 3 ปีที่แล้ว +1

    Thanks

  • @sudheerkona8109
    @sudheerkona8109 4 ปีที่แล้ว

    It's good and bro how to append json data to only one objectid in mongo using django....when I try appending new data it's creating new objectid ..I need to append to same object

    • @SuperCoders
      @SuperCoders  4 ปีที่แล้ว

      Share your problem on our telegram group with screenshots

  • @mihirmehta1336
    @mihirmehta1336 4 ปีที่แล้ว +1

    i am getting an error at 22:25.. where you add (_id=ObjectId(id)) ..
    int() argument must be a string, a bytes-like object or a number, not 'ObjectId'

    • @SuperCoders
      @SuperCoders  4 ปีที่แล้ว

      Share your model code in our telegram group let me check

    • @pawaskarpratik
      @pawaskarpratik 3 ปีที่แล้ว

      Hey Buddy, did you got solution to this? I am having the same issue.

    • @sholeehsani5128
      @sholeehsani5128 ปีที่แล้ว

      try to insert this command: from bson import ObjectId

  • @rheumaticharm9551
    @rheumaticharm9551 3 ปีที่แล้ว

    Not able to use ObjectId(). Where should I import it? Could my version be the problem? Since I'm using latest django?

    • @sholeehsani5128
      @sholeehsani5128 ปีที่แล้ว

      try to insert this command: from bson import ObjectId

  • @ashwinkumarsariwal6321
    @ashwinkumarsariwal6321 4 ปีที่แล้ว +1

    when I created an object in which one field has more than 10000 key it is giving an error in console
    django.db.utils.DatabaseError

    • @SuperCoders
      @SuperCoders  4 ปีที่แล้ว +1

      What is the error

    • @ashwinkumarsariwal6321
      @ashwinkumarsariwal6321 4 ปีที่แล้ว

      @@SuperCoders thank you for your reply, but my problem got solved!

  • @Travellife8877
    @Travellife8877 3 ปีที่แล้ว +1

    AttributeError: module 'django.db.models' has no attribute 'ObjectIdField'
    when is a using id = models.ObjectIdField() in models ?? any idea??

    • @SuperCoders
      @SuperCoders  3 ปีที่แล้ว

      Did you imported djongo?

    • @Travellife8877
      @Travellife8877 3 ปีที่แล้ว

      @@SuperCoders yes ..I created apps and every thing with that only

  • @athulyal7347
    @athulyal7347 4 ปีที่แล้ว

    thank you soooooo much bro.

  • @ilaydaguler4390
    @ilaydaguler4390 3 ปีที่แล้ว

    I will build a database that receives files from the user, can I do it in the same way?

    • @SuperCoders
      @SuperCoders  3 ปีที่แล้ว

      I didn't understand what you are saying

    • @ilaydaguler4390
      @ilaydaguler4390 3 ปีที่แล้ว

      ​@@SuperCoders I need to set up a Mongodb database that holds the bigdata files uploaded by Users, but I am very confused about how to do this. Can you help me with how to do it?

    • @SuperCoders
      @SuperCoders  3 ปีที่แล้ว

      It's just for mongodb tutorial for big data you need to work lot on this

  • @vaibhavjadhav8987
    @vaibhavjadhav8987 4 ปีที่แล้ว +14

    Nice bro ...helped me 🙂(plz remove that annoying page opening sound nxt time) ✅

    • @SuperCoders
      @SuperCoders  4 ปีที่แล้ว +2

      Sure i will remove that next time

  • @vigneshm3512
    @vigneshm3512 4 ปีที่แล้ว +1

    Bro not able to use django with MongoDB.
    When I do migrations it shows
    Django isn't an available database backend
    And it shows
    django.core.exception.ImproperlyConfigured:
    Try using MySQL, Oracle, postgres, sqlite3
    Bro what to do
    Please reply

    • @SuperCoders
      @SuperCoders  4 ปีที่แล้ว

      Check the mongodb django tutorial

  • @shamsiddintoshmirzaev5637
    @shamsiddintoshmirzaev5637 4 ปีที่แล้ว

    Thanks a lot

  • @kumarsaurav2901
    @kumarsaurav2901 4 ปีที่แล้ว

    i am not able to use ObjectIdField method.

    • @SuperCoders
      @SuperCoders  4 ปีที่แล้ว

      Share your problem on our telegram group with screenshots

  • @dhanalm
    @dhanalm 4 ปีที่แล้ว

    Hi Thanks for nice video.When I wanted to add data from admin panel,I am getting below error.
    type object 'User' has no attribute '_default_manager'
    Can you please let me know what went wrong

    • @SuperCoders
      @SuperCoders  4 ปีที่แล้ว +1

      Please share your problem on our telegram group

  • @raichand70
    @raichand70 4 ปีที่แล้ว

    What is the purpose of installing Django version 2.0? Then uninstalling it. Then installing version 3.05. I have heard that djongo 1.3.2 is not compatible with Django version 3.0.

    • @SuperCoders
      @SuperCoders  4 ปีที่แล้ว

      For using djongo for mongo db you need old version of django

  • @ashwinparthasarathy8264
    @ashwinparthasarathy8264 4 ปีที่แล้ว

    able to post but values not reflecting in mongo db

  • @fahad75688
    @fahad75688 3 ปีที่แล้ว +3

    that click sound is irritating.

    • @SuperCoders
      @SuperCoders  3 ปีที่แล้ว +1

      Removed in latest tutorial

  • @vaibhavjadhav8987
    @vaibhavjadhav8987 4 ปีที่แล้ว

    Bro my API's are working but on browser it shows error....the empty path didnt match any of these.

    • @SuperCoders
      @SuperCoders  4 ปีที่แล้ว +1

      Check the url path i think you miss slash

    • @vaibhavjadhav8987
      @vaibhavjadhav8987 4 ปีที่แล้ว

      path( 'add_user/' , views.add_user )
      Api is working...inserting in database...but browser shows page not found🤦🏻...

    • @SuperCoders
      @SuperCoders  4 ปีที่แล้ว

      @@vaibhavjadhav8987 join our telegram group and share your problem with screenshots

    • @iambhushan418
      @iambhushan418 3 ปีที่แล้ว

      bhai maza mongodb wrna data retrieve hot nhiy api wrti tuza problem kasa solve zala?

  • @milindchavan4329
    @milindchavan4329 4 ปีที่แล้ว +1

    click sound irritates! but good tutorial

    • @SuperCoders
      @SuperCoders  4 ปีที่แล้ว

      Click sound removed in future Tutorials

  • @rheumaticharm9551
    @rheumaticharm9551 3 ปีที่แล้ว

    Sorry sir, but pls remove that page turning sound effect on clicks. Idk it's giving me a headache.

  • @kandurimanohar8211
    @kandurimanohar8211 4 ปีที่แล้ว +1

    what is background noice

  • @goendoelan
    @goendoelan 4 ปีที่แล้ว +1

    mouse click .to disturbe

    • @SuperCoders
      @SuperCoders  4 ปีที่แล้ว

      Yes i removed that in future Tutorials

  • @trustidiong2261
    @trustidiong2261 3 ปีที่แล้ว

    Watching from my phone. The screen is faint, I can't see the codes well

  • @syedmujeebh6661
    @syedmujeebh6661 4 ปีที่แล้ว

    Hi ,
    I have a hosted my site with postgres db in heroku and I dont know how to download it in local and check it with the records
    Please make a video on it

    • @SuperCoders
      @SuperCoders  4 ปีที่แล้ว

      I don't think you can check database on free version

  • @hacninetushar
    @hacninetushar 4 ปีที่แล้ว +2

    Unlike for adding background music.

  • @smilebig3884
    @smilebig3884 4 ปีที่แล้ว

    background sound is fuckin annoying man. :(

  • @rajakushwah2185
    @rajakushwah2185 4 ปีที่แล้ว +1

    Remove that annoying sound

    • @SuperCoders
      @SuperCoders  4 ปีที่แล้ว

      Already removed in new video