Watch This Before Using Django With MongoDB

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ส.ค. 2024
  • Using Django with MongoDB is not like connecting to any other relational database, you must proceed with caution.
    Check out my Python Django course: dub.sh/74cUn7B
    Read full article here: / read-this-before-using...
    Follow me on twitter: / dennisivy11
  • บันเทิง

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

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

    Don't forget to check out my Complete Django course: dub.sh/74cUn7B

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

    Hey Dennis, Just wanted to let you know that I have been watching your videos for about a year and three months ago I landed my first developer job! You have been of great great help in this journey, keep it up dude, i'm sure there are a lot of people like me out there. Thank you very much.

  • @balazshetenyi82
    @balazshetenyi82 6 หลายเดือนก่อน +3

    Hey Dennis, I was just about to go down the rabbit hole with connecting MongoDB through Djongo. You just saved me from the headache mate. Thanks!

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

    Hey Dennis, I took your Udemy course on Django and it was totally worth it ❤️.
    I am learning from your TH-cam channel too, keep it up!

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

      Love to hear that! Thank you for taking the time to give feedback 🙏

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

      @@DennisIvy Please make a video of CRUD using django and vanilla javascript

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

    Thank you so much! I wish I had watched your video before. I really struggled using MongoDB with Django. I faced a lot of problems due to the pymongo and djongo libraries.

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

    You really helped me with your videos. Im currently an intern as django/backend developer. Thanks to you 👍

  • @unuefeejovwoke6609
    @unuefeejovwoke6609 10 หลายเดือนก่อน +2

    Thanks Dennis, I was having issues with using Djongo, I was wondering what was wrong, every steps leads to a new error, thanks for this

    • @repneuable
      @repneuable 8 หลายเดือนก่อน

      Same here! Actively seeking alternatives

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

    We had the following combination for a major project I was part of: Django+sql (for user models and authentication) Django+mongo engine (for the rest of the stuff). We had good success with it.

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

    Thank you for making this because i was literally thinking of my next project and i was going to use mongodb and django but clearly im going to use django and mysql

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

    I used it with Django 4.0 and it works perfectly. But I did a lot of configurations, I documented it and I would love to share.

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

      Please do

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

      @@DennisIvy I will paste the link here when I finish editing it. I started learning django 4 months ago.

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

      Can you share your experience on it? I would like to use jongo but this video pausing me.

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

      @@montrenous It was really tedious and its kind of complicated.

    • @raspi.config
      @raspi.config ปีที่แล้ว +1

      @@ayomidestephen3234 Is there any development in the process you mentioned about the subject?

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

    My employer wanted me to create an application in django with MongoDB. and believe me, it's hell to work with djongo.
    It took one week of my time to realize that djongo was a bad package to work with. It's cool to work for college project, but nope for industrial project.

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

    Thanks for the great insight. It was really helpful.
    I had a question though - Can't we just use SQLAlchemy along with PyMongo (or similar libraries) as the default Django ORM instead of the inbuilt Django ORM? (django allows the use of custom ORMs, right?)
    P.S. I made the same comment on your medium article so ignore this, if you saw that one earlier.

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

    Hello. Can you make tutorial about using NoSQL(MongoDb) and SQL(Postgres) together. For example saving user information in NoSQL and other staffs in SQL. Thanks

  • @olitworkowski
    @olitworkowski 11 หลายเดือนก่อน +1

    Thank you! saved my a** a ton of extra work probably. Need to do a large Uni project and almost used Mongo as my DB with Django. Dodged a bullet

  • @ninobach7456
    @ninobach7456 6 หลายเดือนก่อน +2

    It feels like as soon as you want to deviate from t he classic django path, you break this whole thing and lose all the functionality. Like, if you keep building out your project long enough, you will rewrite all of django by yourself, because all the original functionality no longer works.

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

      You want to use MongoDB? Say goodbye to ORM. You want to replace usernames with emails? Say goodbye to your User Model.

    • @ninobach7456
      @ninobach7456 6 หลายเดือนก่อน +1

      What's left then? If you end up rewriting this whole thing anyway, you might as well start with something blank like fastapi

    • @adithp1051
      @adithp1051 5 หลายเดือนก่อน

      @@ninobach7456 that is what exactly fastapi is trying to do

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

    Great great great considerations. IT Architect here and you Sir are bringing up the really relevant considerations. I'd love to hear something like that around Django and Plotly/Dash and/or D3.

  • @juanguirao
    @juanguirao ปีที่แล้ว +11

    Thanks Dennis!
    Extremely useful for me at this time, when we are designing a system with Django for ML.
    MongoDB seems like a good choice for massive large datasets, as used in ML.
    However it is obvious that Django's batteries-included advantage is based on ORM for relational databases, and we do not want to throw away all those batteries.
    We want the best of both world, so how about using PostgreSQL as the main Django database (for users, business logic models, admin, etc), and using PyMongo to connect to a MongoDB database where we store the large ML datasets?
    Would this approach make sense?
    Do you see any obvious flaws in this design?

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

      After I saw this video, I had an idea like you. It is very common in real software to use different technologies. If in your application, this approache doesn't make conflict, I think it is a good way as you said using relational database for Authentication or Admin panel... and using document-based database like Mongodb and its driver PyMongo for the large datasets and heavy dynamic data.

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

    Hey Dennis. I understand that "pymongo" is better suited with Flask & FastApi than with Django. What are your thoughts on "django-mongodb-engine" library? I've heard that it makes the integration of Django with MongoDb quite easy. Have you had a chance to explore it yet?

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

      Last version was 0.6 (Jul 12, 2015)

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

    I was looking for alternate of Djongo. Very informative video. Thank you so much.

  • @csandreas1
    @csandreas1 3 หลายเดือนก่อน

    So basically just use Postgres with elastic search for indexing

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

    Hey Dennis, could you try build a group video chat app with js and jitsi...would be really helpful

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

    Thanks we went ahead using MySQL and it really helped in terms of documentation, references and support!

  • @johnbaldwin2904
    @johnbaldwin2904 2 หลายเดือนก่อน

    Hey Dennis, would you mind sharing some research papers that cover this topic in detail more? I have a dissertation that leans towards this direction and could use some official peer reviewed sources to justify any decisions to change course.

  • @ulrichvalette9535
    @ulrichvalette9535 2 หลายเดือนก่อน

    Hi Dennis, thanks for sharing this one. As you posted this video 1 year ago, is the connection between Django and MongoDB still a headache? Can we now benefit from the ORM of Django? Thanks again.

  • @tejasnirmal1945
    @tejasnirmal1945 7 หลายเดือนก่อน

    I watched your all django courses, I learned Django from your videos, please make full video on Django with data science like pandas, numpy, matplotlib etc. please

  • @oussama-jabrane
    @oussama-jabrane 2 ปีที่แล้ว

    Thank you for your informations Dennis ❤️🙌

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

    Neon with django, please 🙏

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

    Thank you Dennis for this information. ✨✨

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

    Thanks for this vid. I'm part of a team using Djongo to connect to a MongoDB for a work project and I wasn't aware of this. We managed to get it working with Django 4.0.3 & djongo 1.3.6. Do you think its worth switching to an alternative? What kind of problems specifically have you run into?

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

    @DennisIvy this is great. Thanks for the research. How soon can we get the next part with Pymongo? Looking forward to it. Keep up the great content.

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

    how to fix internal server Error in Django sub route like home/, about/. when i am try to host in server but after installation the sub route not work. The error is 500 Internal Server Error.

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

    Thank you sir 🙏 ☺️

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

    Thanks for this video because it saved my lot of times

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

    thank you! saved me a lot of headaches

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

    Thanks for this information!
    I am using MongoEngine in my Django project.

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

    I am working in a moderate size project on Django and MongoDb. I am using combination of Pymongo and Djongo. If I use either as standalone, the website loads much slower.

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

    i wanna celery course 😁

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

    will Django team will update and in future for supporting the Mongodb

  • @Zeioth
    @Zeioth 8 หลายเดือนก่อน

    Django was built for relational databases. For what I've researched recently, MongoDB support is WAY better than it was in 2014 but it's always gonna be a hack. Like, you can always use MongoDB without ORM, but things like migrations, haystack integration, celery, geo positional data... Forget about having them out of the box. You essentially lose the advantages Django offer, and you start working like you would do in any other backend.

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

    there has be a solution otherwise our best backend framework will lack behind others due to mongodb

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

      As of now there is no formal solution by there are people working in it :)

  • @fill-me-in
    @fill-me-in 2 ปีที่แล้ว +1

    Hey Dennis if you could help me i was wondering if i could use fingerprint recognition in my ongoing Django project if you may know or ever tried could you give me some tips? Thanks

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

    a good video explaining, I have a question in the user field, it is advisable to create a separate one or use the default that comes

  • @tejasnirmal1945
    @tejasnirmal1945 7 หลายเดือนก่อน

    Can You please make a full video on Django with data science. Please 🙏, I kindly request,

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

    That's really informative Dennis. What would be your option for NoSQL that work great with Django?

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

    Django works pretty well with django 4.1, i recently worked with it on my project

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

    Dennis when your django 4 course will come out? Waiting for a long time ⌛️

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

      Not sure yet, but hopefully soon ;)

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

      It will include(DRF)?

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

      @@DennisIvy There's still hope then, thank you 😊

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

      @@Soulis98 atleast an intro to it

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

      @@DennisIvy ty!

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

    Much the same problem when trying to use google firebase

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

    Thanks Dennis Ivy. Please how do you record your screen when coding?
    Thanks

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

    keep uploading video sir :))

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

    Hi Dennis, what tool are you using to monitor your production application (logs/errors/activity/...)? Could you maybe do a video on that?

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

    Yep It's powerful since djongo released and i used mdb for almost every my projects

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

    Hey Dennis, i am trying to create a webb application that live-monitors sensor data and performs some Machine Learning in the backend to predict some values. Because of the machine learinging part i thought Django would be a good option because it is in Python. But i want to create a distributed application and i run into Kafka and Mongo and other tools that are not plug and play with Django. I can use Django Channels for some of the live part of the application but thats is so far. From your experience, is Django a framework that allows me to accomplish my target or should i go to Angular or something else? Thanx in advance

  • @kikokoko6228
    @kikokoko6228 7 หลายเดือนก่อน

    mongoDb + flask can be a good option? i mean, flask dont use a specific ORM and I guess i can work with NoSQL database?

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

    Hey Dennis, I wanted to know how to write a models field in django for implementing the time series collections database with mongo db as the backend

  • @aimeejos5088
    @aimeejos5088 8 หลายเดือนก่อน

    Have anyone faced issue using django signals and transaction atomic? Inside the transaction atomic block am updating a table1 and creating table2. Where table2 use foreign key of table1. Table1 is updated successfully and table 2 is created. But when django signals of table2 is called, am getting the old instance of table1.

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

    Hey dennis, i was just wondering what is the problem of using the django admin panel for user instead of creating all those CRUD pages and authentication and soon? Django already did that so why not use that? Thank you so much

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

    hey Dennis, could you please tell me hów to connect mongodb atlas to the django... and how to register the model in the atlas

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

    Do you know about Cassandra models along with pydantic?

  • @JT-mr3db
    @JT-mr3db 11 หลายเดือนก่อน

    Surely Django allows you to replace its ORM?

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

    Please bring Django 4 fullstack course

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

    LETS GOO DENNIS THE MENACE

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

    Sir build a mobile app with django and kivymd

  • @nicolasssj4804
    @nicolasssj4804 3 หลายเดือนก่อน

    great!

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

    what best and fast database for Django NoSQL like the MongoDB or SQL like PostgreSQL

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

    What about MongoEngine ? Can't we replace Django ORM with it ?

  • @manarbajafar3700
    @manarbajafar3700 9 หลายเดือนก่อน

    Thanks for the video, what about MongoEngine?

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

    @Dennis Ivy when new video ? man

  • @sayf.shaikh
    @sayf.shaikh 2 ปีที่แล้ว

    Great tutorials :-)

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

    Hey Dennis, This is very🛑 emergency 🛑.Actually I am using django and MongoDB and i have created REST API for userregistration using JWT and when i want to blocklist that time it shows me some error called bulkError and i can't fix it.can you help me out please ?

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

    Hello can you pls provide the video of studybudy website using django because i cant find video in your youtube videos plz

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

    Just a little curiosity from a beginner guy, I am working at a company where we are using MongoDB databases with Flask and we are using strict schema validation feature of MongoDB in our collections. From the top of my head, would it work if we are to take the migration features of Djongo to maintain a schema for our collections, and then make simple queries using it but use pymongo to make complex queries (this is similar for very complex SQL queries as well while using an ORM). I will try this out myself soon, and I posted it here so that people far more experienced than me can have a look.

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

      Hi Rifat - were you able to implement this solution? I am working on a project to build a python-based application to pull and analyze MongDB datasets. Would appreciate if you could share some resource that helped you. Thanks

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

      any update?

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

    Make a video on UserLog Table in Database to store user login, logout time, ip address, browser user etc if possible thanks in advance

  • @blog.pymastery
    @blog.pymastery 2 ปีที่แล้ว

    Hi Dennis Ivy. Thank you for that clarification!
    I always waiting your videos because they are very helpful!
    I have one thing if could help please 🙏
    I am building video membership with Django and Paypal subscription api but one thing I stuck in is that I don't know how to use or implement webhook!

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

    I am using djongo for my project

  • @0xdolan
    @0xdolan ปีที่แล้ว

    Any new updates guys?

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

    Hello Dennis, I follow your videos because the way you create a content is best for django and react. As you know Firebase is popular which comes with lots of functionalities like cloud functions and realtime updates with firestore database(using onsnapshot event listener). I have worked on react with firestore database and used this functionality. But now I think I should add django for creating APIs. But the big issue I'm facing is django api can collect the data using onsnapshot event handler provided by firebase. But when I call api it provides me data only ones. How can I add event Listener on api?? Or is there any other way for this??

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

    I found nodejs is more mature for both... sql & nosql

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

      With NoSQL, yea, mongoose is a great package to use.

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

    lets admit it ,no many real use cases in the real world for nosql databases

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

    Полезный контент пилишь) спасибо

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

    Please .make vedio how to deploy django project to pythonanywhere.

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

    Because of this monogb hype our favourite backend is lagging behind 😔

  • @rajpatel1279
    @rajpatel1279 4 หลายเดือนก่อน

    Hello Dennis I have a request for you to make a steam/epic-games clone using django please if possible I want to make this project and if you make a tutorial that will be great help for me. or you we can just connect and you can guide me for the project

  • @user-kh9ee4oo7p
    @user-kh9ee4oo7p 5 หลายเดือนก่อน

    What about now is there is anything?

    • @DennisIvy
      @DennisIvy  5 หลายเดือนก่อน

      Still no

    • @user-kh9ee4oo7p
      @user-kh9ee4oo7p 5 หลายเดือนก่อน

      @@DennisIvy Do you actually think this problem will be solved in the future, and also do you think that django will be the number one web framework? Or actually is it number one and why? Thanks

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

    Can you pls Do a video of multiple dbs with django with sql server? Also the all the dbs will be in same structure but only db names will be changed

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

      I keep the idea in mind :)

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

      @@DennisIvy thank you, it will help me really. I am just beginner so I am just using the videos of yours and I don't know the best practices. I will wait for the video. Good day bro

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

    OG SQL

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

    ok.

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

    Thank you Dennis 😊, can you please talk abou django saas/tenants project 🙏.

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

    Djongo

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

    djongo only compatable with django version 3.0.5 4:23

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

      Even then it’s not fully compatible.

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

      @@DennisIvy where are youuu missing ur videos

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

    Is it possible to use cassandra db with django??