Пример #1
0
def register_extensions(app):
    from udata import models, routing, tasks, mail, i18n, auth
    i18n.init_app(app)
    models.init_app(app)
    routing.init_app(app)
    auth.init_app(app)
    cache.init_app(app)
    tasks.init_app(app)
    mail.init_app(app)

    from udata import search
    search.init_app(app)
    return app
Пример #2
0
def register_extensions(app):
    from udata import (models, routing, tasks, mail, i18n, auth, search,
                       sitemap, sentry)
    tasks.init_app(app)
    i18n.init_app(app)
    models.init_app(app)
    routing.init_app(app)
    auth.init_app(app)
    cache.init_app(app)
    csrf.init_app(app)
    mail.init_app(app)
    search.init_app(app)
    sitemap.init_app(app)
    sentry.init_app(app)
    return app
Пример #3
0
def register_extensions(app):
    from udata import models, routing, tasks, mail, i18n, auth, theme
    i18n.init_app(app)
    models.init_app(app)
    routing.init_app(app)
    auth.init_app(app)
    cache.init_app(app)
    tasks.init_app(app)
    csrf.init_app(app)
    nav.init_app(app)
    theme.init_app(app)
    mail.init_app(app)

    from udata import search
    search.init_app(app)
    return app
Пример #4
0
def register_extensions(app):
    from . import patch_flask_security  # noqa
    from udata import (models, routing, tasks, mail, i18n, auth, theme, search,
                       sitemap, sentry)
    i18n.init_app(app)
    models.init_app(app)
    routing.init_app(app)
    auth.init_app(app)
    cache.init_app(app)
    tasks.init_app(app)
    csrf.init_app(app)
    nav.init_app(app)
    theme.init_app(app)
    mail.init_app(app)
    search.init_app(app)
    sitemap.init_app(app)
    sentry.init_app(app)
    return app
Пример #5
0
def register_extensions(app):
    from udata import (
        models, routing, tasks, mail, i18n, auth, theme, search, sitemap,
        sentry
    )
    i18n.init_app(app)
    models.init_app(app)
    routing.init_app(app)
    auth.init_app(app)
    cache.init_app(app)
    tasks.init_app(app)
    csrf.init_app(app)
    nav.init_app(app)
    theme.init_app(app)
    mail.init_app(app)
    search.init_app(app)
    sitemap.init_app(app)
    sentry.init_app(app)
    return app