parameters: ()
return_statement: return app
docstring: Configure the app w.r.t Flask-security, databases, loggers.
docstring_summary: Configure the app w.r.t Flask-security, databases, loggers.
docstring_tokens: Configure the app w . r . t Flask - security databases loggers .
function: def create_app():
      """Configure the app w.r.t Flask-security, databases, loggers."""
      app = Flask(__name__)
      config_name = os.getenv('FLASK_CONFIGURATION', 'default')
      app.config.from_object(CONFIG[config_name])
      db.init_app(app)
      Security(app, user_datastore)
      CORS(app, headers=['Content-Type'])
  
      return app
function_tokens: def create_app ( ) : app = Flask ( __name__ ) config_name = os . getenv ( 'FLASK_CONFIGURATION' , 'default' ) app . config . from_object ( CONFIG [ config_name ] ) db . init_app ( app ) Security ( app , user_datastore ) CORS ( app , headers = [ 'Content-Type' ] ) return app