I am running the application with django, and I wanted to use celery to complete some of the scheduled tasks.
According to official docs , in my settings.py file I installed a transport broker
BROKER_URL = 'django://'
and added kombu.transport.django to installed applications
INSTALLED_APPS = (
....
'kombu.transport.django',
....)
However, when I try to synchronize the database with python manage.py syncdb, I get the following error:
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 338, in execute_from_command_line
utility.execute()
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 312, in execute
django.setup()
File "C:\Python27\lib\site-packages\django\__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Python27\lib\site-packages\django\apps\registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "C:\Python27\lib\site-packages\django\apps\config.py", line 119, in create
import_module(entry)
File "C:\Python27\lib\importlib\__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named django
Any ideas why I am getting this? I installed django correctly and the application works fine if I come kombu.transport.djangofrom installed applications.
: , , . pip install kombu. 'kombu.transport', , 'kombu.transport.django', :
ImportError: No module named django