# HG changeset patch # User Brian Neal # Date 1401150889 18000 # Node ID fa7377d90160eaec6caef1c1a5f45651c9b69922 # Parent 7429c98c8ece08abb258fce3d67dd472e2a60d36 Issue #71: in production, celeryd now needs tools on the PYTHONPATH. This is because it is now using site markup, which requires our Markdown extensions. diff -r 7429c98c8ece -r fa7377d90160 sg101/celery.py --- a/sg101/celery.py Mon May 26 14:59:55 2014 -0500 +++ b/sg101/celery.py Mon May 26 19:34:49 2014 -0500 @@ -3,6 +3,7 @@ from __future__ import absolute_import import os import platform +import sys from celery import Celery from django.conf import settings @@ -14,6 +15,9 @@ # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', settings_val) +# Add some stuff to the Python path +sys.path.append('/svr/django-sites/sg101/sg101/tools') + app = Celery('sg101') app.config_from_object('django.conf:settings')