I am working on a new project where every developer has his own settings file.
In order to run Django I have to load it like this:
python manage.py runserver --settings="databank_web.settings.dqs.dev_houman"
I have now to integrate Celery 3.1 into the project and this approach is causing me a lot of headache.
I have followed all the steps to integrate the Celery into Django as described here.
I can run Django as usual, but now I have to run celery with my custom Django environment as described in this solution.
DJANGO_SETTINGS_MODULE='databank_web.settings.dqs.dev_houman' celery -A databank_web worker -l info
This seems to get a step further, but I get this error message:
File "/Users/houman/git/venv/lib/python2.7/site-packages/django/contrib/admin/sites.py", line 3, in <module>
from django.contrib.admin import ModelAdmin, actions
ImportError: cannot import name actions
I did some research and followed this solution in order to narrow it down:
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "databank_web.settings.dqs.dev_houman")
from django.contrib.admin import ModelAdmin, actions
This was meant to clarify which error is throwing, however it seems to work just fine. So I am clueless why this is failing within Django environment.
So why am I getting those ImportError: cannot import name actions errors?
Much appreciated