node2:/celery/djtest#python manage.py celeryd -l info
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/python27/lib/python2.7/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
utility.execute()
File "/usr/local/python27/lib/python2.7/site-packages/django/core/management/__init__.py", line 355, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/python27/lib/python2.7/site-packages/django/core/management/__init__.py", line 205, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/local/python27/lib/python2.7/site-packages/django/core/management/__init__.py", line 40, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/local/python27/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/usr/local/python27/lib/python2.7/site-packages/djcelery/management/commands/celeryd.py", line 16, in <module>
class Command(CeleryCommand):
File "/usr/local/python27/lib/python2.7/site-packages/djcelery/management/commands/celeryd.py", line 20, in Command
worker.get_options() +
TypeError: can only concatenate tuple (not "NoneType") to tuple
node2:/celery/djtest#
pip install celery
pip install celery-with-redis
pip install django-celery
检查是否安装