Beispiel #1
0
def register_extensions(app):
    """Register application extensions."""
    assets.init_app(app)
    db.init_app(app)
    try:
        scheduler.init_app(app)
    except SchedulerAlreadyRunningError:
        pass
Beispiel #2
0
def register_extensions(app):
    """Register application extensions."""
    assets.init_app(app)
    db.init_app(app)
    scheduler.init_app(app)