Python Django + MongoDB CRUD API Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024

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

  • @Accenture-code
    @Accenture-code 2 ปีที่แล้ว +3

    Dude thanks a lot for such a detailed explanation, ur knowledge of command are too good .

  • @code-with-vivek
    @code-with-vivek ปีที่แล้ว

    Very well explained in a step by step approach. Really helpful, thank you.

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

    7:38 Why did you create departmentID in the Departments Model? I thought django does that for you automatically

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

    Ones again a outstanding tutorial!!!! Is it possible to make a WiForms UI consume this API or a simple CRUD with it ?

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

      Yes, more tutorials coming soon

    • @2005Azm
      @2005Azm 3 ปีที่แล้ว

      @@ArtofEngineer Thank you very much!! That would be great!

  • @MarioHerrero-n1d
    @MarioHerrero-n1d ปีที่แล้ว

    Save my day! Thanks a lot One question in the min 13:16 when you do the def departmentApi(request, id=0): the forward if now can be done with a match (it's like a switch) no?

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

    Thank you for this explanation .
    When we run python manage.py runserver , we can see db.sqlite3 will be created . Can i know what is sqlite3 here because there is also Mongo DB.
    Does the image saved will be in Database or only the folder inside project?

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

      db.sqlite3 is the default database provided by django framework. You can work with this without specifying or adding any specific database out of the box

    • @keshavdk3080
      @keshavdk3080 2 ปีที่แล้ว

      @@arifshariar5290 ok, thank you

  • @suryaprakash428
    @suryaprakash428 6 หลายเดือนก่อน

    Nice tutorials this is what am looking for... can you make video how parent child relationship model works in mongodb

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

    Very Nice but I have a question. where is the admin django?
    How is the visualization in the admin?
    since the data is not structured so i have this question

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

    Why did you define a departmen model while it is not using in employee as a foreing key?
    How I can do that?

  • @phatngqn
    @phatngqn 2 ปีที่แล้ว

    sorry, i expect an attribute in model class to be list of string value, what kind of field can i use in models object ?

  • @AJ-0223
    @AJ-0223 ปีที่แล้ว

    Hi your videos explained in details so thanks for that... Also I wanted you please make videos on django + AWS services(Lambda, Glue(ETL), S3 bucket) + (vuejs, reactjs)

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

    Why would you use mongo db instead of relational db in this case? I am just wondering

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

      Why you are commenting we are wondering 😂

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

    Please add the github link. The above link is having errors.

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

      updated link. please check now

  • @user-hi7yl3nf3f
    @user-hi7yl3nf3f 2 ปีที่แล้ว +1

    while doing python manage.py makemigrations EmployeeApp, getting this error:
    NotImplementedError: Database objects do not implement truth value testing or bool(). Please compare with None instead: database is not None

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

      Pymongo version is unsupported. Use an earlier version 3.12.1.

    • @user-hi7yl3nf3f
      @user-hi7yl3nf3f 2 ปีที่แล้ว

      @@abdullahrashid9745 ok thanks

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

      same error.

    • @user-xt3km2pm4w
      @user-xt3km2pm4w ปีที่แล้ว

      pymongo.errors.InvalidURI: Username and password must be escaped according to RFC 3986, use urllib.parse.quote_plus
      what kind of error this is
      if anyone know means please help me

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

      @@abdullahrashid9745 I've installed pymongo 3.12.0, it works. Thanks a lot

  • @tienlequang8065
    @tienlequang8065 2 ปีที่แล้ว

    Hi, I use Window 10, and in step :"django-admin start project ". then miss : "'django-admin' is not recognized as an internal or external command, operable program or batch file. ". I try any ways, but it's fail. Can you help me :( .

    • @jamesdaniels6134
      @jamesdaniels6134 2 ปีที่แล้ว

      I had to reinstall python (doesn't take long). There's a box you need to tick that says something about PATH. It's in this tutorial.

    • @abdullahrashid9745
      @abdullahrashid9745 2 ปีที่แล้ว

      `python -m django` is the better way of doing it

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

    Thank you !!

  • @sabithasabitha135
    @sabithasabitha135 2 ปีที่แล้ว

    Not connection between compass and cluster

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

    Anyone?
    NotImplementedError: Database objects do not implement truth value testing or bool(). Please compare with None instead: database is not None

  • @nineinchnail3382
    @nineinchnail3382 2 ปีที่แล้ว

    Using djongo is terrible idea.

    • @abdullahrashid9745
      @abdullahrashid9745 2 ปีที่แล้ว

      Well can you explain why?

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

      @@abdullahrashid9745 lots of compatibility issues occurs... Since django ORM is designed for relational databases... And Mongo isn't one...

  • @ThiPham-rh6mp
    @ThiPham-rh6mp ปีที่แล้ว

    err: django.db.utils.DatabaseError help me