#NEWLINE# def create_app( config = None , app_name = None , blueprints = None ) : #NEWLINE# #INDENT# 'Create a Flask app.' #NEWLINE# if ( app_name is None ) : #NEWLINE# #INDENT# app_name = BaseConfig . PROJECT #NEWLINE# #UNINDENT# if ( blueprints is None ) : #NEWLINE# #INDENT# blueprints = DEFAULT_BLUEPRINTS #NEWLINE# #UNINDENT# app = Flask ( app_name , instance_relative_config = True ) #NEWLINE# configure_app ( app , config ) #NEWLINE# configure_blueprints ( app , blueprints ) #NEWLINE# configure_extensions ( app_name ) #NEWLINE# configure_hook ( app ) #NEWLINE# configure_logging ( app ) #NEWLINE# configure_context_processors ( app ) #NEWLINE# configure_error_handlers ( app ) #NEWLINE# return app