flask mongoengine getting started code example
Example: flask mongoengine getting started
'''Basic setup can be done by defining MONGODB_SETTINGS
on app.config and creating a MongoEngine instance.'''
from flask import Flask
from flask_mongoengine import MongoEngine
app = Flask(__name__)
app.config['MONGODB_SETTINGS'] = {
"db": "myapp",
}
db = MongoEngine(app)