Пример #1
0
def init_app(app):
    """TODO: inicializar Flask Simple Login + JWT"""

    app.cli.command()(list_users)
    app.cli.command()(add_user)

    base_admin.add_view(UserAdmin(User, db.session))
Пример #2
0
def init_app(app):
    app.cli.command()(list_users)
    app.cli.command()(list_categorys)
    app.cli.command()(list_stores)
    app.cli.command()(list_itens)
    app.cli.command()(list_address)
    app.cli.command()(list_order)
    app.cli.command()(add_user)
    app.cli.command()(add_category)
    app.cli.command()(add_store)
    app.cli.command()(add_item)
    app.cli.command()(add_address)
    app.cli.command()(add_order)
    app.cli.command()(del_category)

    admin.add_view(UserAdmin(User, db.session))