jasminefiner
9/24/2018 - 10:25 AM

9: Register Flask-Migrate

UMS: User Models 9

# app/__init__.py
# ...
from flask_migrate import Migrate
# ...
migrate = Migrate()

def create_app(config_name):
    # ...
    migrate.init_app(app, db)
    # ...
    return app