sir can you please tell that anykind of website can be ccreated using mongodb and django together? please reply
@MohsinKhan-ve1hn
4 жыл бұрын
I am trying to implement authentication for my Django app. I am using mongodb replica set and mongoengine for connection between drf and mongodb. I am not able to make super user for my app. Will you please help me with this?
@BeyondBasicsWithRakesh
4 жыл бұрын
If you are using createsuperuser then it won't work. Django doesn't provide MongoDB connection support and Django admin will always look for default connection settings.
@niteshrawat576
5 жыл бұрын
Hi Raakesh, I want to ask you that can we Create multiple collections inside a Db and write classes for them. I mean i want to have seperate collection for all the users but dont want to make classes for each of them individually. I am able to make multiple collection using the mongoshell but cant access them from the ORM as there is no concrete class defined for them in "models.py" file. I would deeply appreciate if you can help me on this.
@BeyondBasicsWithRakesh
5 жыл бұрын
nitesh rawat I am sure you can do that. What kind of help are you looking for?
@niteshrawat576
5 жыл бұрын
@@BeyondBasicsWithRakesh thanks for the reply :) I have a case when I want to create seperate collection for every user of my system. From your video I assume that making a class that subclasses from Document is the way to make a collection. So for every user I don't want to make classes like User1(Document), User2(Document etc.... Also making collection directly through mongo shell make them inaccessible via mongoengine ODM
@BeyondBasicsWithRakesh
5 жыл бұрын
nitesh rawat I am not 100% sure if you can create separate classes for different users but I don’t think it should be needed. Ideally this kind of structure is needed only when you are not sure of the data you want to store in the database and if that’s a case you should probably think of some other solution
@09corpoblu
6 жыл бұрын
can i please ask what is the difference betweeen DBNAME and _MONGODB_NAME? because i seem to get auth error and could not access the database?
@jagl257
4 жыл бұрын
Great tutorial, I have one question, Do we need to have created the database before connecting it to Django right?
@BeyondBasicsWithRakesh
4 жыл бұрын
Jorge Andres Guerra Landazuri I think Mongodb does that automatically but I am not 100% sure
@SubhaBera
8 жыл бұрын
Hi is it possible to add collections on mongodb from django in realtime?
@TheAshishk007
5 жыл бұрын
Very nice tutorial, I think this tutorial is made in Django
@BeyondBasicsWithRakesh
5 жыл бұрын
Ashish Kapil It was made with Django 1.9. I am not able to understand as to why are you facing such error. Can you share more details?
@TheAshishk007
5 жыл бұрын
@@BeyondBasicsWithRakesh It was some proxy error. Thanks a lot sir for such a great tutorial :)
@TheAshishk007
5 жыл бұрын
Hi sir, Is it possible to use ModelForm with the mogoengine Models?
@nishachoudhary998
4 жыл бұрын
Very nice video. Really helpful.
@GuruKal
7 жыл бұрын
Great video, Raakesh! Would be great if you could cover authentication in Django using MongoDB in the future :)
@ingenierielogicielle9596
7 жыл бұрын
very nice. but i have a matter .Type error not all arguments converted during string formating.
@ingenierielogicielle9596
7 жыл бұрын
thank you.I have forgotten %s
@xmark2
8 жыл бұрын
Hi, It's a great video. I'd like to ask can I find your example codes, or is it possible to upload somewhere please? Thanks
@BeyondBasicsWithRakesh
7 жыл бұрын
Sorry for the delay github.com/raakeshkumar/pycon-demo
@muralidhara2063
5 жыл бұрын
Hello Raakesh, it was good tutorial for beginners, is there any possibility to get your code.
@BeyondBasicsWithRakesh
5 жыл бұрын
muralidhar A github.com/raakeshkumar/pycon-demo
@sweetatyagiaz
6 жыл бұрын
Can you help me to setup MongoDB with Django
@BeyondBasicsWithRakesh
6 жыл бұрын
Rakesh Tyagi let me know if you are facing any issues. Would guide you to setup
@sweetatyagiaz
6 жыл бұрын
Thanks for your help. I am getting problem in setting MONGODB in seeting.py. If you are comfortable you can share your contact. my mail id is sweetatyagiaz@gmail.com
@sweetatyagiaz
6 жыл бұрын
I am not able to setup MONGODB connection into setting.py. kindly seuugest
@BeyondBasicsWithRakesh
6 жыл бұрын
Can you share your Django version? Have you followed all the steps I've shown in the video?
@winuxworx
5 жыл бұрын
If the installation and configuration of MongoDB was demonstrated it would be great.
@JimitRupani
4 жыл бұрын
just switching tabs and it would have been better if you have done it from scratch.
@yadavgaurav386
5 жыл бұрын
Hi is it possible to use Django Rest Framework + Djongo(nesdis.github.io/djongo/get-started/) Thanks
@lhm0531
7 жыл бұрын
Great video ,thanks for your sharing
@arghyasaha350
7 жыл бұрын
Hey Raakesh! Good work. Please share the github repository.
Пікірлер: 52