DÜZENLEME
birisi sadece şema olması gerekiyordu ne gönderebilir ise 2 yarattı! Sadece tablo isimlerini ve sütun isimlerini bilmem gerek!Django-Kereviz: djkombu_queue tablo hayır ben çok mutlu olurdum,
ben bu yazının boyunca takip ediyorum: Ben başarıyla yüklendi django-kereviz pip ettik
http://www.caktusgroup.com/blog/2014/06/23/scheduling-tasks-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',
)
Ben python manage.py syncdb
çalıştırdığınızda: Ben python manage.py celery worker --loglevel=info
çalıştırdığınızda
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
Ancak, ben ile sonuna kadar:
OperationalError: no such table: djkombu_queue
ben kaldırıp her şeyi yeniden denedim ama olmadı Bu tablonun neden oluşturulmadığını anlayabilmek. Bu tablo nasıl oluşturulur?
ben ayarlarını değiştirerek çünkü diğer soruya baktıktan sonra bu soruyu sordu DÜZENLEME:
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',
)
VEYA
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',
)
Yine sonuçlanır:
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
djkombu_queue
hala kayıp Ancak ...
djcelery.transport' yüklü uygulamalar için Ekle 've tekrar syncdb yapmak. – ChillarAnand
olası bir kopyası niçin [celery \ _taskmeta ve django'da bir syncdb çalıştırırken diğer tablolar oluşturulmuyor?] (Http://stackoverflow.com/questions/6959702/why-are-celery-taskmeta-and-other-tables -not-ol-oluşturulma-ne zaman-bir-syncdb) – ChillarAnand
çok benzer, ama aynı düzeltme kullanarak benim sorunumu çözmedi. Güncellemeye bakın. – DataSwede