django-celery
django-celery copied to clipboard
Environment Variables Error [Celery 3.2.1 and Python 2.7]
I'm still on Python 2.7 and I'm on Celery 3.2.1 . Everything work fine in local server. When I move to the production server, supervisord is throwing 'spawn error ' for not been able to locate my environment variables like a secret key, database password. Also, these are saved in the etc/bash.bashrc file. And in my settings.py I used os.environ.get('secret_key') to get them. Django can locate this but celery can't.
Note: I'm using virtualenv too.