Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
OS:
node.js / npm versions:
Additional info:
-
Not Needed
Description
Hello team!
I was just going through your docs on how to integrate MongoDb with Django and on your website I just found a buggy code snippet.
Here it is:
from pymongo import MongoClient
client = pymongo.MongoClient('connection_string')
db = client['db_name']
Here's the link of the code snippet: https://www.mongodb.com/compatibility/mongodb-and-django
The correct one should be this:
from pymongo import MongoClient
client = MongoClient('connection_string')
db = client['db_name']
as we've already imported MongoClient from pymongo so there is no need to use it like pymongo.MongoClient.
Thankyou