It's not possible to use the _HOST config key with port numbers included because the host and port values are being concatenated.
This is particularly problematic when using several seeds to connect to a replicaset:
MONGO_HOST='morton.local:30000,morton.local:30001,morton.local:30002'
The better way to do this is to pass the port number to the pymongo connection class (mongoclient or mongoreplicaset client) and leave pymongo to decide on whether to use the port
It's not possible to use the _HOST config key with port numbers included because the host and port values are being concatenated.
This is particularly problematic when using several seeds to connect to a replicaset:
The better way to do this is to pass the port number to the pymongo connection class (mongoclient or mongoreplicaset client) and leave pymongo to decide on whether to use the port