Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask.ext.admin import Admin, expose, AdminIndexView
- class HomeView(AdminIndexView):
- @expose("/")
- def index(self):
- return self.render('admin/home.html')
- admin = Admin(app, "MadeInStockholm.se", index_view=HomeView(name='Home'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement