Create __init__.py
This commit is contained in:
parent
4b72d75490
commit
09edea776a
16
flask-admin-integration/app/__init__.py
Normal file
16
flask-admin-integration/app/__init__.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
from flask_admin import Admin
|
||||
|
||||
...
|
||||
|
||||
from fadmin import *
|
||||
admin = Admin(
|
||||
app,
|
||||
name='μAdmin',
|
||||
template_mode='bootstrap3',
|
||||
index_view=MyAdminIndexView(
|
||||
url='/fadmin'
|
||||
),
|
||||
)
|
||||
from app.models import User, Order
|
||||
admin.add_view(MyModelView(User, db.session))
|
||||
admin.add_view(OrderView(Order, db.session))
|
Loading…
Reference in a new issue