code: def get_celery_app(name=None, **kwargs):  # nocv
      # pylint: disable=import-error
      '''
      Function to return celery-app. Works only if celery installed.
      :param name: Application name
      :param kwargs: overrided env-settings
      :return: Celery-app object
      '''
      from celery import Celery
      prepare_environment(**kwargs)
      name = name or os.getenv("VST_PROJECT")
      celery_app = Celery(name)
      celery_app.config_from_object('django.conf:settings', namespace='CELERY')
      celery_app.autodiscover_tasks()
      return celery_apf get_celery_app(name=None, **kwargs):  # nocv
      # pylint: disable=import-error
      '''
      Function to return celery-app. Works only if celery installed.
      :param name: Application name
      :param kwargs: overrided env-settings
      :return: Celery-app object
      '''
      from celery import Celery
      prepare_environment(**kwargs)
      name = name or os.getenv("VST_PROJECT")
      celery_app = Celery(name)
      celery_app.config_from_object('django.conf:settings', namespace='CELERY')
      celery_app.autodiscover_tasks()
      return celery_app
docs: Function to return celery-app. Works only if celery installed.
      :param name: Application name
      :param kwargs: overrided env-settings
      :return: Celery-app object