payment DB issue resolved

This commit is contained in:
Ubuntu 2024-06-19 08:39:27 +00:00
parent 972206cc2c
commit 71b25755c8
1 changed files with 8 additions and 8 deletions

View File

@ -62,15 +62,15 @@ User = get_user_model()
geolocator = Nominatim(user_agent="http")
from_email = settings.EMAIL_HOST_USER
MongoDBUrl = "mongodb+srv://MNF:root@cluster0.gbkxi.gcp.mongodb.net/DB?retryWrites=true&w=majority"
#MongoDBUrl = "mongodb+srv://MNF:root@cluster0.gbkxi.gcp.mongodb.net/DB?retryWrites=true&w=majority"
client = MongoClient(MongoDBUrl)
#client = MongoClient(MongoDBUrl)
# script_id = id
db = client["DB"]
title = db["college_DB"].find()
college_emaillist = []
for i in title:
college_emaillist.append(i["college_email"])
#db = client["DB"]
#title = db["college_DB"].find()
#college_emaillist = []
#for i in title:
# college_emaillist.append(i["college_email"])
# Create your views here.