· 7 years ago · Feb 26, 2018, 07:48 AM
1celery -A myApp worker -l info
2
3File "/home/alexander/.pyenv/versions/3.5.1/envs/myApp/lib/python3.5/site-packages/celery/utils/collections.py", line 134, in __getattr__
4 type(self).__name__, k))
5
6 AttributeError: 'Settings' object has no attribute 'worker_state_db'
7
8SECRET_KEY = os.environ['SECRET_KEY']
9
10SECRET_KEY = "asdfasdfasdf"
11
12SECRET_KEY = os.environ.get('SECRET_KEY', '')
13
14app.config_from_object('django.conf:settings', namespace='CELERY')