我一直在試圖安裝芹菜幾天,我面臨的問題是。當我嘗試執行manage.py syncd時。我收到錯誤消息。Django芹菜安裝錯誤
C:\o\17\mysite>manage.py syncdb
Error: No module named djcelery
當我已經使用的easy_install
C:\o\17\mysite>easy_install django-celery
Searching for django-celery
Best match: django-celery 3.0.17
Processing django_celery-3.0.17-py2.6.egg
django-celery 3.0.17 is already the active version in easy-install.pth
Installing djcelerymon script to C:\Python26\Scripts
Installing djcelerymon-script.py script to C:\Python26\Scripts
Installing djcelerymon.exe script to C:\Python26\Scripts
Installing djcelerymon.exe.manifest script to C:\Python26\Scripts
Using c:\python26\lib\site-packages\django_celery-3.0.17-py2.6.egg
Processing dependencies for django-celery
Finished processing dependencies for django-celery
我已經設置了我的經紀人這是我使用的Django的數據庫成功安裝了芹菜。
BROKER_URL = 'Django的://'
我加djcelery到installed_app
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
'pet',
'kombu.transport.django',
'djcelery ',
)
我還添加以下行到我的setting.py
import djcelery
djcelery.setup_loader()
我有經驗安裝Django插件之前,我只是不明白爲什麼這不會讓我syncdb在CMD
我在做什麼錯?有人可以幫我:)
謝謝你幫助我的朋友 – donkeyboy72 2013-05-11 11:02:34