-#!$PYTHON
+#!$PYTHON_BIN
import site
site.addsitedir('$PYTHON_SITE')
# Add apps and lib directories to PYTHONPATH
sys.path = [
- '$PROJECT_ROOT',
- '$PROJECT_ROOT/lib',
- '$PROJECT_ROOT/apps',
+ '$APP_DIR',
+ '$APP_DIR/lib',
+ '$APP_DIR/lib/librarian',
+ '$APP_DIR/apps',
] + sys.path
# Run Django
+os.environ["CELERY_LOADER"] = "django"
os.environ['DJANGO_SETTINGS_MODULE'] = '$PROJECT_NAME.settings'
from django.core.handlers.wsgi import WSGIHandler