EDIT 2
If someone could just post what the circuit should be, I would be more than happy! I just need to know the table names and column names!
I follow this guide:
http://www.caktusgroup.com/blog/2014/06/23/scheduling-tasks-celery/
I have successfully installed django-celery.
#settings.py import djcelery djcelery.setup_loader() BROKER_URL = 'django://' INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'charts', 'social.apps.django_app.default', 'django.contrib.staticfiles', 'djcelery', 'kombu.transport.django', )
When I ran python manage.py syncdb :
Creating tables ... Creating table django_admin_log Creating table auth_permission Creating table auth_group_permissions Creating table auth_group Creating table auth_user_groups Creating table auth_user_user_permissions Creating table auth_user Creating table django_content_type Creating table django_session Creating table social_auth_usersocialauth Creating table social_auth_nonce Creating table social_auth_association Creating table social_auth_code Creating table celery_taskmeta Creating table celery_tasksetmeta Creating table djcelery_intervalschedule Creating table djcelery_crontabschedule Creating table djcelery_periodictasks Creating table djcelery_periodictask Creating table djcelery_workerstate Creating table djcelery_taskstate
However, when I run python manage.py celery worker --loglevel=info , I get:
OperationalError: no such table: djkombu_queue
I tried to uninstall and reinstall everything, but could not understand why this table is not created. How to create this table?
EDIT I asked this question by looking at another question, because changing the settings:
INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'charts', 'social.apps.django_app.default', 'djcelery', 'kombu.transport.django', 'djcelery.transport',
)
OR
INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'charts', 'social.apps.django_app.default', 'djcelery', 'djcelery.transport', )
Still leading to:
Creating tables ... Creating table django_admin_log Creating table auth_permission Creating table auth_group_permissions Creating table auth_group Creating table auth_user_groups Creating table auth_user_user_permissions Creating table auth_user Creating table django_content_type Creating table django_session Creating table social_auth_usersocialauth Creating table social_auth_nonce Creating table social_auth_association Creating table social_auth_code Creating table celery_taskmeta Creating table celery_tasksetmeta Creating table djcelery_intervalschedule Creating table djcelery_crontabschedule Creating table djcelery_periodictasks Creating table djcelery_periodictask Creating table djcelery_workerstate Creating table djcelery_taskstate
However djkombu_queue is still missing ...