Skip to content

Commit

Permalink
[bug 578067] Upgrade to celery 2
Browse files Browse the repository at this point in the history
  • Loading branch information
James Socol committed Sep 14, 2010
1 parent 3f48824 commit fca0843
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion requirements/prod.txt
Expand Up @@ -3,7 +3,8 @@
GitPython==0.1.7 GitPython==0.1.7
python-memcached==1.45 python-memcached==1.45
Babel>=0.9.4 Babel>=0.9.4
celery==1.0.6 django-celery==2.0.2
celery==2.0.3
python-dateutil python-dateutil
django-taggit==0.8.0 django-taggit==0.8.0
pytz pytz
Expand Down
5 changes: 4 additions & 1 deletion settings.py
Expand Up @@ -176,7 +176,7 @@
'sumo', 'sumo',
'search', 'search',
'forums', 'forums',
'celery', 'djcelery',
'cronjobs', 'cronjobs',
'notifications', 'notifications',
'identicons', 'identicons',
Expand Down Expand Up @@ -387,6 +387,9 @@ def JINJA_CONFIG():
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'


# Celery # Celery
import djcelery
djcelery.setup_loader()

BROKER_HOST = 'localhost' BROKER_HOST = 'localhost'
BROKER_PORT = 5672 BROKER_PORT = 5672
BROKER_USER = 'kitsune' BROKER_USER = 'kitsune'
Expand Down
3 changes: 3 additions & 0 deletions wsgi/kitsune.wsgi
Expand Up @@ -9,6 +9,9 @@ wsgi_loaded = datetime.now()
wsgidir = os.path.dirname(__file__) wsgidir = os.path.dirname(__file__)
site.addsitedir(os.path.abspath(os.path.join(wsgidir, '../'))) site.addsitedir(os.path.abspath(os.path.join(wsgidir, '../')))


# For django-celery
os.environ['CELERY_LOADER'] = 'django'

# manage adds /apps, /lib, and /vendor to the Python path. # manage adds /apps, /lib, and /vendor to the Python path.
import manage import manage


Expand Down

0 comments on commit fca0843

Please sign in to comment.