@manager.command
def create_admin():
    db.session.add(User(email='ad@min.com', password='admin', admin=True))
    db.session.commit()
Creates the admin user.
dataset/ETHPy150Open realpython/flask-skeleton/manage.py/create_admin