flask-pymongo
flask-pymongo copied to clipboard
PyMongo support for Flask applications
mongo.send(filename) gives typeError -> argument of type 'NoneType' is not iterable
I was working on a streaming project, happened to use flask-pymongo, and found out that I needed to send file via file_id. And so I tweaked it a bit to...
It keeps returning none when uri is passed, and when mongo.cx is passed, mongo.save_file not working. What's wrong what's happening? Please can you help!
Hi, Please note that Flask API has evolved towards JSONProvider interface, replacing previous JSONEncoder/Decoder interfaces. See: https://github.com/pallets/flask/pull/4692. IMO this will require a change in Flask-Pymongo as well. You may also...
Hi, When I try to retrieve a single item from a MongoDB collection and it isn't present, I want an error to be raised, which is the purpose of [Collection.find_one_or_404](https://flask-pymongo.readthedocs.io/en/latest/#flask_pymongo.wrappers.Collection.find_one_or_404)....
Use mypy
I'd rather not use comment-style annotations. And since this is a library, it might make sense to use (and ship) stub files so that others can benefit from the type...
I upgraded to python 3.9 and i've run into some problems. When running: mongo.send_file(filename) Running tests, when I'm grabbing an image file from my mongo database, it seems to not...
Link to Quart-Motor
After nearly 2 hours trying to figure out how to get authentication working with this module, the solution was finally realized, that when using authentication, merely passing the connection string...