-
Couldn't load subscription status.
- Fork 251
Closed
Labels
type: enhancementEnhancement update for old featureEnhancement update for old feature
Description
I create MongoEngine somewhere: db = MongoEngine(config=myconfig)
And init the app int the app.py(flask entrypoint) :
app = Flask(__name__)
db.init_app(app) # import from aboveIt's wired that MongoEngine instance use None instead of myconfig as its config.
I strongly recommend to hold the config when __init__ and check self.config in init_app
| if not config: |
Metadata
Metadata
Assignees
Labels
type: enhancementEnhancement update for old featureEnhancement update for old feature