Skip to content

Instantly share code, notes, and snippets.

@dirn
Created December 18, 2013 18:20
Show Gist options
  • Save dirn/8027160 to your computer and use it in GitHub Desktop.
Save dirn/8027160 to your computer and use it in GitHub Desktop.
from flask import Flask, render_template
from flask.ext.admin import Admin, AdminIndexView, expose
class MyHomeView(AdminIndexView):
pass
app = Flask(__name__)
admin = Admin(app, index_view=MyHomeView(name='My Home'))
if __name__ == '__main__':
app.run(debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment