Update app1.py
Browse files
app1.py
CHANGED
|
@@ -3,7 +3,7 @@ import pymongo
|
|
| 3 |
|
| 4 |
############################## MongoDB Config ##############################
|
| 5 |
# Create a new client and connect to the server
|
| 6 |
-
uri = "mongodb+srv
|
| 7 |
client = pymongo.MongoClient(uri)
|
| 8 |
db = client[
|
| 9 |
'todo'] # Connect to a Database (MongoDB will create the database if it does not exist, and make a connection to it.)
|
|
|
|
| 3 |
|
| 4 |
############################## MongoDB Config ##############################
|
| 5 |
# Create a new client and connect to the server
|
| 6 |
+
uri = "mongodb+srv://yaqiu8025:ZNjfJYRIZVVvshkz@cluster0.yczxpur.mongodb.net/?retryWrites=true&w=majority"" # Put your connection string into it
|
| 7 |
client = pymongo.MongoClient(uri)
|
| 8 |
db = client[
|
| 9 |
'todo'] # Connect to a Database (MongoDB will create the database if it does not exist, and make a connection to it.)
|