﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23133	'Command' object has no attribute 'stderr', now in django.core.management.base.BaseCommand.check	cpbotha	nobody	"Similar to issue https://code.djangoproject.com/ticket/19665 the new Django check logic is triggering the following exception in Django 1.7rc2 with celery 3.1.13 and djcelery 3.1.10:

{{{
./manage.py celery
Traceback (most recent call last):
  File ""./manage.py"", line 10, in <module>
    execute_from_command_line(sys.argv)
  File ""/home/cpbotha/.virtualenvs/test/local/lib/python2.7/site-packages/django/core/management/__init__.py"", line 385, in execute_from_command_line
    utility.execute()
  File ""/home/cpbotha/.virtualenvs/test/local/lib/python2.7/site-packages/django/core/management/__init__.py"", line 377, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File ""/home/cpbotha/.virtualenvs/test/local/lib/python2.7/site-packages/djcelery/management/commands/celery.py"", line 22, in run_from_argv
    self.validate()
  File ""/home/cpbotha/.virtualenvs/test/local/lib/python2.7/site-packages/django/core/management/base.py"", line 361, in validate
    return self.check(app_configs=app_configs, display_num_errors=display_num_errors)
  File ""/home/cpbotha/.virtualenvs/test/local/lib/python2.7/site-packages/django/core/management/base.py"", line 415, in check
    self.stderr.write(msg)
AttributeError: 'Command' object has no attribute 'stderr'
}}}

Similar to the previous bug, self.stderr is being referenced before it has been initialized. I ported the fix from that bug (which also exists in current Django master), the diff is attached.
"	Bug	closed	Core (Management commands)	1.7-rc-2	Normal	invalid		brian@…	Unreviewed	1	0	1	0	0	0
