from django.conf import settings
from django.utils.module_loading import import_by_path

BACKEND = getattr(settings, 'CELERY_PROGRESS_BACKEND',
                  'celery_progress.backends.CeleryBackend')


def get_backend():
    return import_by_path(BACKEND)


backend = get_backend()()

from django.conf import settings
from django.utils.module_loading import import_by_path

BACKEND = getattr(settings.configure(), 'CELERY_PROGRESS_BACKEND',
                  'celery_progress.backends.CeleryBackend')


def get_backend():
    return import_by_path(BACKEND)


backend = get_backend()()

Call configure() on settings to ensure that the CELERY_PROGRESS_BACKEND variable can be picked up
Call configure() on settings to ensure that the CELERY_PROGRESS_BACKEND variable can be picked up
