EDIT 2
Se qualcuno può semplicemente postare ciò che lo schema dovrebbe essere, sarei più che felice! Ho solo bisogno di conoscere i nomi delle tabelle e i nomi delle colonne!Django-Sedano: tavolo djkombu_queue no creato
Sto seguendo lungo questo tutorial:
http://www.caktusgroup.com/blog/2014/06/23/scheduling-tasks-celery/
ho PIP installato django-sedano con successo.
#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',
)
Quando eseguo 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
Tuttavia, quando corro python manage.py celery worker --loglevel=info
io alla fine con:
OperationalError: no such table: djkombu_queue
ho provato a disinstallare e reinstallare tutto, ma non sono stati in grado di capire perché questa tabella non viene creata. Come si crea questo tavolo?
EDIT Ho fatto questa domanda dopo aver guardato l'altra questione, perché la modifica delle impostazioni di:
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',
)
O
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',
)
risultati Ancora in:
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
Tuttavia il djkombu_queue
manca ancora ...
Add 'djcelery.transport' alle applicazioni installate e fare di nuovo syncdb. – ChillarAnand
possibile duplicato di [Perché sedano \ _taskmeta e altre tabelle non vengono create quando si esegue un syncdb in django?] (Http://stackoverflow.com/questions/6959702/why-are-celery-taskmeta-and-other-tables -not-being-created-when-running-a-syncdb) – ChillarAnand
è molto simile, ma l'uso della stessa correzione non ha risolto il mio problema. Vedi l'aggiornamento. – DataSwede