Unverified Commit 2d30556d authored by Andrew Grigorev's avatar Andrew Grigorev Committed by GitHub

Fix "undefined app" error in introduction.rst

parent 43567732
......@@ -16,11 +16,11 @@ The first step is to initialize an empty admin interface for your Flask app::
from flask import Flask
from flask_admin import Admin
app = Flask(__name__)
# set optional bootswatch theme
app.config['FLASK_ADMIN_SWATCH'] = 'cerulean'
app = Flask(__name__)
admin = Admin(app, name='microblog', template_mode='bootstrap3')
# Add administrative views here
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment