Flask configuration

Flask-mongoengine does not provide any configuration defaults. User is responsible for setting up correct database settings, to exclude any possible misconfiguration and data corruption.

There are several options to set connection. Please note, that all except recommended are deprecated and may be removed in future versions, to lower code base complexity and bugs. If you use any deprecated connection settings approach, you should update your application configuration.

By default, flask-mongoengine2 open the connection when extension is instantiated, but you can configure it to open connection only on first database access by setting the 'connect' dictionary parameter or its MONGODB_CONNECT flat equivalent to False.

Note

Due lack of developers we are unable to answer/solve not recommended connection methods errors. Please switch to recommended method before posting any issue. Thank you.