closeio / flask-common

Some commonly shared code for Flask, MongoEngine, and Python apps
26 stars 4 forks source link

Namespace mongoengine-specific stuff in flask_common.mongo #56

Closed wojcikstefan closed 5 years ago

wojcikstefan commented 5 years ago

This PR puts (almost) everything that's specific to MongoDB/MongoEngine in flask_common.mongo.* submodules.

This is first and foremost a better structure, but it'll also make it easier to understand a) what needs to change when we move to upstream MongoEngine, b) where to put anything else that's mongo-specific (I may soon add some code in here if it won't make it to upstream MongoEngine).

Probably best to review the commits separately. You may also want to check out this branch and check the code structure in your editor.