Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add custom config to Mongo #327

Closed
ripperdoc opened this issue Mar 5, 2018 · 1 comment
Closed

Cannot add custom config to Mongo #327

ripperdoc opened this issue Mar 5, 2018 · 1 comment
Labels
type: bug Something isn't working

Comments

@ripperdoc
Copy link

Because the way Flask-Mongoengine sanitizes config input, it seems to me some settings in PyMongo are impossible to set. The init_app() method supports a config dict, but it lowercases all keys. Most optional parameters to MongoClient are camelCase, e.g. socketTimeoutMS. I realize that Flask won't accept camelCase config parameters, but there is also no way to add them as extra args to init_app(). Any advice?

@insspb insspb added the type: enhancement Enhancement update for old feature label Jun 8, 2020
@insspb insspb added type: bug Something isn't working and removed type: enhancement Enhancement update for old feature labels Jul 9, 2022
@insspb
Copy link
Collaborator

insspb commented Jul 9, 2022

Hi @ripperdoc
Workaround and fix implemented in #429 and described in current documentation in #477

@insspb insspb closed this as completed Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants