def load_admin():
"""
Configuration admin
"""
from apps.auth.controllers import MyAdminIndexView
admin = Admin(
app, name='Admin', index_view=MyAdminIndexView(),
template_mode='bootstrap3', base_template='admin_master.html',
)
return admin
评论列表
文章目录