parameters: (config=None, app_name=None, blueprints=None)
return_statement: return app
docstring: Create a Flask app.
docstring_summary: Create a Flask app.
docstring_tokens: Create a Flask app .
function: def create_app(config=None, app_name=None, blueprints=None):
      """Create a Flask app."""
  
      if app_name is None:
          app_name = ConfigsModel.BaseConfig.PROJECT
  
      if app_name != ConfigsModel.APP_NAME.worker:
          import application.controllers as Controllers
  
      app = Flask(app_name,
                  static_folder='application/static',
                  template_folder='application/templates')
  
      configure_app(app, config)
      configure_hook(app, app_name)
      configure_extensions(app)
      configure_blueprints(app, app_name, blueprints)
      configure_logging(app)
      configure_template_filters(app)
      configure_error_handlers(app)
      if app_name != ConfigsModel.APP_NAME.worker:
          configure_admin(app)
  
      app.wsgi_app = ProxyFix(app.wsgi_app)
      return app
function_tokens: def create_app ( config = None , app_name = None , blueprints = None ) : if app_name is None : app_name = ConfigsModel . BaseConfig . PROJECT if app_name != ConfigsModel . APP_NAME . worker : import application . controllers as Controllers app = Flask ( app_name , static_folder = 'application/static' , template_folder = 'application/templates' ) configure_app ( app , config ) configure_hook ( app , app_name ) configure_extensions ( app ) configure_blueprints ( app , app_name , blueprints ) configure_logging ( app ) configure_template_filters ( app ) configure_error_handlers ( app ) if app_name != ConfigsModel . APP_NAME . worker : configure_admin ( app ) app . wsgi_app = ProxyFix ( app . wsgi_app ) return app