This part of the documentation documents all the public classes and functions in Flask-Mixer.
This class is used for integration to one or more Flask applications.
| Parameters: |
|
|---|
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///:memory:'
db = SQLAlchemy()
db.init_app(app)
mixer = Mixer(app, session_commit=True)
...
user = mixer.blend('app.models.User')
The second possibility is to create the object once and configure the application later to support it:
mixer = Mixer()
...
mixer.init_app(app)
Generate instance of model.
| Parameters: |
|
|---|
This callback can be used to initialize an application for the use with this mixer setup.
| Parameters: | app – Flask application |
|---|