 <p>I am very late for this question, but anyway... My guess is that you <em>want</em> to use the Application Factory pattern and use the Flask-Admin. There is a <a href="https://github.com/flask-admin/flask-admin/issues/910" rel="nofollow">nice discussion</a> about the underlying problems. I used a very ugly solution, instantiating the Flask-Admin in the <strong>init</strong>.py file:</p> <pre><code>from flask_admin.contrib.sqla import ModelView class UserModelView(ModelView): create_modal = True edit_modal = True can_export = True def create_app(config_name): app = Flask(__name__) app.config.from_object(config[config_name]) db.init_app(app) # import models here because otherwise it will throw errors from models import User, Sector, Article admin.init_app(app) admin.add_view(UserModelView(User, db.session)) # attach blueprints from .main import main as main_blueprint app.register_blueprint(main_blueprint) from .auth import auth as auth_blueprint app.register_blueprint(auth_blueprint, url_prefix='/auth') return app </code></pre>