
강의자료에서는 세줄이 있다고 하셨는데 저는
import certifi
ca = certifi.where()
이 두 줄이 더 적혀있습니다. 이전에 사용할 때는 문제가 되지 않았었는데 화성땅 만들기 제작시 5줄을 다 입력하니
import certifi에서 계속 빨간줄이 찍히며 에러가 나고 있습니다.
왜 저는 두 줄이 더 있는 것인지, 코드를 어떻게 바꾸어줘야 할지 안내 부탁드립니다.
from pymongo import MongoClient
import certifi
ca = certifi.where()
client = MongoClient('mongodb+srv://test:sparta@cluster0.xcdw4bn.mongodb.net/Cluster0?retryWrites=true&w=majority', tlsCAFile=ca)
db = client.dbsparta
