flask-pymongo
flask-pymongo copied to clipboard
PyMongo support for Flask applications
pymongo.errors.OperationFailure: Authentication failed.
Some times file name not set in request. It is better to set it explicitly.
The addition of an optional database param in the gridFS functions would be quite helpful for multi-db based applications. I guess a simple addition of `db :str=None` on [this](https://github.com/dcrosta/flask-pymongo/blob/master/flask_pymongo/__init__.py#L133) line...
Troubleshooting about TypeError: argument must be an int, or have a fileno() method added
(Mostly) replace the flake8 stuff with black. We'll want to keep flake8 for import sorting. See https://gitlab.com/bigapplepy/yak-bak/blob/master/tox.ini#L41-49 and https://gitlab.com/bigapplepy/yak-bak/blob/master/tox.ini#L58-67 for reference on what we want to do here.
As per the documentation [here](https://docs.mongodb.com/manual/core/gridfs/#files.contentType), the `contentType` field has been deprecated. However, it is still used [here](https://github.com/dcrosta/flask-pymongo/blob/91c4c19e482112b0e5ff8851132b7a4de036a1d8/flask_pymongo/__init__.py#L201) and [here](https://github.com/dcrosta/flask-pymongo/blob/91c4c19e482112b0e5ff8851132b7a4de036a1d8/flask_pymongo/__init__.py#L238). Currently, if someone saves an image through the `gridfs` module and...
If a query set is sorted, we can paginate efficiently using `.min(...).skip(1).limit(page_size)`. Not sure how to make this work generically yet.