set CELERY_ALWAYS_EAGER=False by default to avoid AttributeErrors

This commit is contained in:
Laura Klünder 2016-10-05 21:40:10 +02:00
parent 0541217abb
commit cdb960a112

View file

@ -104,6 +104,7 @@ if HAS_MEMCACHED:
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
HAS_CELERY_BROKER = config.has_option('celery', 'broker')
CELERY_ALWAYS_EAGER = False
if HAS_CELERY_BROKER:
BROKER_URL = config.get('celery', 'broker')
CELERY_RESULT_BACKEND = config.get('celery', 'backend')