You shouldn't need to link the extension to the Flask application for you to be able to configure it. Moved setting of variables from the init_app() to the __init__().