DB name is incorrect in your_first_read

instead of the default in the notebook:
import pymongo
uri = “mongodb+srv://m220student:m220password@”
client = pymongo.MongoClient(uri)
m220 = client.m220
movies = m220.movies

we should use:

import pymongo
uri = “mongodb+srv://m220student:m220password@”
client = pymongo.MongoClient(uri)
m220 = client.mflix
movies = m220.movies

2 Likes

Hi fcantusaldivar,

Thanks for the note. We wrote those notebooks when we recorded the lessons, when we were using different database/collection names.

We just copied the notebooks directly from the lessons, because it would make it easier to follow each video. Admittedly, this doesn’t make a lot of sense - you should be able to copy commands from the notebook and run them against your Atlas cluster.

In the future, we will update the database/collection names in the notebooks so you can run them more easily.

Matt