rvanlaar/djangorecipe — Issue #39: Celery 2 requires addition to wsgi script
Author: rvanlaar
Created: 2011-12-27 21:40:47+00:00
State: open
Labels: Invalid, Undecided

Our Django project uses Celery to start asynchronous tasks. Celery 2 now requires the following addition to the WSGI script:

os.environ["CELERY_LOADER"] = "django"

Bug #338735 is about adding code injection into the WSGI script, which would be the best way to add this piece of code. In the mean time, though, would it be possible to just always add this line? It does no harm if Celery is not used.