payment DB issue resolved
This commit is contained in:
parent
972206cc2c
commit
71b25755c8
|
@ -62,15 +62,15 @@ User = get_user_model()
|
||||||
geolocator = Nominatim(user_agent="http")
|
geolocator = Nominatim(user_agent="http")
|
||||||
from_email = settings.EMAIL_HOST_USER
|
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
|
# script_id = id
|
||||||
db = client["DB"]
|
#db = client["DB"]
|
||||||
title = db["college_DB"].find()
|
#title = db["college_DB"].find()
|
||||||
college_emaillist = []
|
#college_emaillist = []
|
||||||
for i in title:
|
#for i in title:
|
||||||
college_emaillist.append(i["college_email"])
|
# college_emaillist.append(i["college_email"])
|
||||||
|
|
||||||
# Create your views here.
|
# Create your views here.
|
||||||
|
|
||||||
|
@ -2294,4 +2294,4 @@ def refund_admin(request, id):
|
||||||
|
|
||||||
|
|
||||||
def ForSomeWork(request):
|
def ForSomeWork(request):
|
||||||
return render(request, 'payments/for_some_work.html')
|
return render(request, 'payments/for_some_work.html')
|
||||||
|
|
Loading…
Reference in New Issue