123456789101112 |
- def get_connection_string():
- username = 'upload'
- password = 'quackquack'
-
- s = ("mongodb://<USERNAME>:<PASSWORD>@dt0-shard-00-00-npkyt.mongodb.net:27017,"
- "dt0-shard-00-01-npkyt.mongodb.net:27017,dt0-shard-00-02-npkyt.mongodb.net"
- ":27017/test?ssl=true&replicaSet=dt0-shard-0&authSource=admin")
-
- s = s.replace("<PASSWORD>", password)
- s = s.replace("<USERNAME>", username)
- return s
|