
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
맥을 사용하고 있어서 http://localhost:5001/ 쓰고 있는데
pymongo 코드 붙이고 나서 확인하면 로컬호스트 연결을 거부했다고 나옵니다.
from pymongo import MongoClient
client = MongoClient('mongodb+srv://sparta:test@cluster0.unarxdd.mongodb.net/?retryWrites=true&w=majority', tlsCAFile=ca)
db = client.dbsparta
이건 강사님이 화면에 적용시킨 파이몽고 코딩이고... 전에 맥에서는 certifi도 넣으셔야 한다고 즉문즉답에서 들어서
두개 다 해봤는데 안되네요.
from pymongo import MongoClient
import certifi
ca = certifi.where()
client = MongoClient('mongodb+srv://sparta:test@cluster0.unarxdd.mongodb.net/?retryWrites=true&w=majority', tlsCAFile=ca)
db = client.dbsparta
