code: def main(global_config, **settings):
      
      set_cache_regions_from_settings(settings)
      config = Configurator(settings=settings)
      config.include('cms')
      config.configure_celery(global_config['__file__'])
      return config.make_wsgi_app()
docs: This function returns a Pyramid WSGI application.