Skip to content

Instantly share code, notes, and snippets.

@piyh
Created January 6, 2020 00:20
Show Gist options
  • Save piyh/b419566eea2bc3997040cd028b99209d to your computer and use it in GitHub Desktop.
Save piyh/b419566eea2bc3997040cd028b99209d to your computer and use it in GitHub Desktop.
i get to the base flask-admin screen with this gist.
from flask import Flask
from flask_admin import Admin
app = Flask(__name__)
# set optional bootswatch theme
app.config['FLASK_ADMIN_SWATCH'] = 'cerulean'
admin = Admin(app, name='microblog', template_mode='bootstrap3')
# Add administrative views here
app.debug = True
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment