#NEWLINE# def create_app( config_name ) : #NEWLINE# #INDENT# app = Flask ( __name__ ) #NEWLINE# app . config . from_object ( config [ config_name ] ) #NEWLINE# app . secret_key = config_name . config [ 'SECRET_KEY' ] #NEWLINE# config [ config_name ] . init_app ( app ) #NEWLINE# db . init_app ( app ) #NEWLINE# login_manager . init_app ( app ) #NEWLINE# bootstrap . init_app ( app ) #NEWLINE# from main import main as main_blueprint #NEWLINE# app . register_blueprint ( main_blueprint ) #NEWLINE# from auth import auth as auth_blueprint #NEWLINE# app . register_blueprint ( auth_blueprint , url_prefix = '/auth' ) #NEWLINE# return app