Created
January 6, 2020 00:20
-
-
Save piyh/b419566eea2bc3997040cd028b99209d to your computer and use it in GitHub Desktop.
i get to the base flask-admin screen with this gist.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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