def register_extensions(app):
    'Register Flask extensions'
    with app.app_context():
        db.init_app(app=app)
        db.create_all()
        limiter.init_app(app=app)
Register Flask extensions
def register_extensions(app):
    
    with app.app_context():
        db.init_app(app=app)
        db.create_all()
        limiter.init_app(app=app)