Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Settings' object has no attribute 'CELERY_HAYSTACK_TRANSACTION_SAFE' #23

Open
grvhi opened this issue Sep 29, 2013 · 2 comments
Open

Comments

@grvhi
Copy link

grvhi commented Sep 29, 2013

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?

@Zeioth
Copy link

Zeioth commented Jan 31, 2014

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
Copy link

Zeioth commented Jan 31, 2014

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/

lfalvarez pushed a commit to ciudadanointeligente/write-it that referenced this issue May 4, 2015
…server were due to some missing variables in the settings file. Those missing variables are being added in this commit.
lfalvarez added a commit to ciudadanointeligente/write-it that referenced this issue May 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants