Skip to content

Instantly share code, notes, and snippets.

@marteinn
Created May 9, 2013 08:33
Show Gist options
  • Save marteinn/5546293 to your computer and use it in GitHub Desktop.
Save marteinn/5546293 to your computer and use it in GitHub Desktop.
Quick example on how to replace the Flask-Admin homescreen.
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'))
@adifahmi
Copy link

can change flask.ext.admin to flask_admin for latest release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment