{"action":"created","issue":{"url":"https://api.github.com/repos/celery/celery/issues/2582","labels_url":"https://api.github.com/repos/celery/celery/issues/2582/labels{/name}","comments_url":"https://api.github.com/repos/celery/celery/issues/2582/comments","events_url":"https://api.github.com/repos/celery/celery/issues/2582/events","html_url":"https://github.com/celery/celery/issues/2582","id":68986269,"number":2582,"title":"Request point release on 3.1 tree for issue #2536 fix","user":{"login":"bierdybard","id":11870879,"avatar_url":"https://avatars.githubusercontent.com/u/11870879?v=3","gravatar_id":"","url":"https://api.github.com/users/bierdybard","html_url":"https://github.com/bierdybard","followers_url":"https://api.github.com/users/bierdybard/followers","following_url":"https://api.github.com/users/bierdybard/following{/other_user}","gists_url":"https://api.github.com/users/bierdybard/gists{/gist_id}","starred_url":"https://api.github.com/users/bierdybard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bierdybard/subscriptions","organizations_url":"https://api.github.com/users/bierdybard/orgs","repos_url":"https://api.github.com/users/bierdybard/repos","events_url":"https://api.github.com/users/bierdybard/events{/privacy}","received_events_url":"https://api.github.com/users/bierdybard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-16T18:47:24Z","updated_at":"2015-04-21T09:44:38Z","closed_at":null,"body":"Hello,\r\n\r\nThe problem reported under issue #2536 prevents projects using Django + Celery from migrating to 1.8 unless they manually patch the issue. Requesting a point release on the 3.1 tree to resolve this launch error with Django 1.8."},"comment":{"url":"https://api.github.com/repos/celery/celery/issues/comments/94722964","html_url":"https://github.com/celery/celery/issues/2582#issuecomment-94722964","issue_url":"https://api.github.com/repos/celery/celery/issues/2582","id":94722964,"user":{"login":"TauPan","id":289597,"avatar_url":"https://avatars.githubusercontent.com/u/289597?v=3","gravatar_id":"","url":"https://api.github.com/users/TauPan","html_url":"https://github.com/TauPan","followers_url":"https://api.github.com/users/TauPan/followers","following_url":"https://api.github.com/users/TauPan/following{/other_user}","gists_url":"https://api.github.com/users/TauPan/gists{/gist_id}","starred_url":"https://api.github.com/users/TauPan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TauPan/subscriptions","organizations_url":"https://api.github.com/users/TauPan/orgs","repos_url":"https://api.github.com/users/TauPan/repos","events_url":"https://api.github.com/users/TauPan/events{/privacy}","received_events_url":"https://api.github.com/users/TauPan/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T09:44:38Z","updated_at":"2015-04-21T09:44:38Z","body":"I've backported the patch from 8a2c3b1 to 3.1.17:\r\n\r\n```patch\r\ndiff --git a/celery/fixups/django.py b/celery/fixups/django.py\r\nindex c1ae62e..e6ab7ed 100644\r\n--- a/celery/fixups/django.py\r\n+++ b/celery/fixups/django.py\r\n@@ -158,7 +158,13 @@ class DjangoWorkerFixup(object):\r\n         except ImportError:\r\n             from django.core.management.base import BaseCommand\r\n             cmd = BaseCommand()\r\n-            cmd.stdout, cmd.stderr = sys.stdout, sys.stderr\r\n+            try:\r\n+                # since django 1.5\r\n+                from django.core.management.base import OutputWrapper\r\n+                cmd.stdout = OutputWrapper(sys.stdout)\r\n+                cmd.stderr = OutputWrapper(sys.stderr)\r\n+            except ImportError:\r\n+                cmd.stdout, cmd.stderr = sys.stdout, sys.stderr\r\n             cmd.check()\r\n         else:\r\n             num_errors = get_validation_errors(s, None)\r\n```\r\n\r\nSeems to work here.\r\n\r\nMaybe that helps a bit. ;)\r\n"}}