[Answer]-Celery 3.1.9 on Heroku, OperationalError: could not connect to server. Worker acts fine locally

1👍

The problem seemed to be that I didn’t run os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings.production') in celery.py.

To deal with the problem of multiple settings modules, see here.

Leave a comment