changeset 793:fa7377d90160

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.
author Brian Neal <bgneal@gmail.com>
date Mon, 26 May 2014 19:34:49 -0500
parents 7429c98c8ece
children f416f5db3d91
files sg101/celery.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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')