Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
MONGO_URI forcefully expects database name #117
I configure MONGO_URI as shown below:
I don't include the database name because I prefer to make a connection and get a list of the databases first. Then I "attach" to the databases one-by-one to extract some information from them.
However, I now get a ValueError exception that: "Your URI must specify a database name".
Is there any way to not force having to supply the database name? This used to work in versions < 2, so hoping we can get a similar behavior in the newer versions.
That seems reasonable. I've cut a new branch (https://github.com/dcrosta/flask-pymongo/tree/allow-no-db-name), and if everything looks good on the build, I'll try to cut the release later today.