celery-haystack icon indicating copy to clipboard operation
celery-haystack copied to clipboard

'Settings' object has no attribute 'CELERY_HAYSTACK_TRANSACTION_SAFE'

Open grvhi opened this issue 12 years ago • 2 comments
trafficstars

Not sure where this is coming from, but I'm suddenly getting this error whenever I try to load any page in my app..... If I add the setting to my settings.py, I get the same error, but with a different missing attribute....

Any ideas?

grvhi avatar Sep 29 '13 12:09 grvhi

I'm having the same issue, when i try to run django-celery:

python manage.py celeryd

If i delete celery-haystack, the same command works fine and i can run it. I attached my traceback. Version: celery 3.0.23, django-celery 3.0.23, celery-haystack 0.7.2, Also using: Django-Configurations 0.3, Haystack 2.0.0, Postgre 9.1

traceback

Zeioth avatar Jan 31 '14 20:01 Zeioth

SOLVED: using this on my project's settings.py:

#CELERY-HAYSTACK
CELERY_HAYSTACK_TRANSACTION_SAFE = True
CELERY_HAYSTACK_DEFAULT_ALIAS = None
CELERY_HAYSTACK_RETRY_DELAY = 5 * 60
CELERY_HAYSTACK_MAX_RETRIES = 1
CELERY_HAYSTACK_DEFAULT_TASK = 'celery_haystack.tasks.CeleryHaystackSignalHandler'

I tested to add a new model, and search for it, and it's working. My hipotesis is that 'Django-Configurations' have problems to use djcelery.setup_loader(), or maybe with appconf. so i wrote manually the settings from: http://pydoc.net/Python/celery-haystack/0.7.2/celery_haystack.conf/

Zeioth avatar Jan 31 '14 20:01 Zeioth