To use MongoDB as your database in your #django project, follow below steps
Step 1: Download Package Djongo to download package open command prompt and type this command pip install djongo
Step 2: Download MongoDB ComPass Version from this link https://www.mongodb.com/try/download/compass after downloading install MongoDB compass version and open compass version window and you will get connect database button click on this button
Step 3: Create Django Project by typing command in CMD like django-admin startproject <projectname>
Step 4: After creating project open settings.py file and just add this one line into your settings.py file:
DATABASES = {
'default': {
'ENGINE': 'djongo',
'NAME': 'todoapp',
}
}
0 Comments
Comment Rules :
1. Do not post Adult/illegal Links.
2. Try to comment in only मराठी / English Language.
3. Do not post other website's links which are useless.
4. Your Comment should be based on the Topic for other queries.
5. Do not use Abusive Language.
6. Respect each other.
Thank You for following the rules. Please Comment....