Skip to content

Conversation

@mtsgrd
Copy link
Contributor

@mtsgrd mtsgrd commented Nov 23, 2014

Hi guys, I would appreciate it someone could review this and merge into master.

Assigning app to self in the init_app method is strictly forbidden. Multiple apps with different configs might share the same flask_mongoengine instance and that currently leads to unexpected results. All app specific variables (anything depending on config) must be stored either on the application context or in the app object itself.

Thank you.

ghost pushed a commit that referenced this pull request Nov 24, 2014
Fix dangerous use self.app in init_app and test refactoring.
@ghost ghost merged commit 20f5daf into MongoEngine:master Nov 24, 2014
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant