Django-Celery: djkombu_queue table not created

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 ...

+7
python django celery django-celery
source share
4 answers

It was stuck with the same thing from 6 days ... The following finally resolved this for me: -

 pip install django-kombu 

and then adding djkombu to INSTALLED APPS : -

 INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.admindocs', 'djcelery', 'djkombu', 'app1', 'app2', 'app3', 'app4', ) 

Then fresh sind: -

 python manage.py syncdb 

You can check the circuit with: -

 python manage.py sqlall djkombu 
+6
source share

In accordance with the current documentation on herring, it is necessary to include kombu.transport.django in the installed applications:

 INSTALLED_APPS += ["kombu.transport.django"] 
+1
source share

try the following:

add djcelery.transport to installed_apps

 INSTALLED_APPS = ('djcelery.transport', ) 
0
source share

Something broke between different versions of Django, Django-Celery, and Kombu while trying to create tables.

I managed to find Django 1.6.5, django-celery 3.1.16 and Kombu 3.0.21 WORKS.

0
source share

All Articles