Ticket #23107: 23107.diff

File 23107.diff, 552 bytes (added by Hiroki Kiyohara, 10 years ago)
  • django/core/management/base.py

    diff --git a/django/core/management/base.py b/django/core/management/base.py
    index 52f4a07..a63d6e9 100644
    a b class BaseCommand(object):  
    305305        if options.get('no_color'):
    306306            self.style = no_style()
    307307            self.stderr = OutputWrapper(options.get('stderr', sys.stderr))
     308            os.environ.setdefault("DJANGO_COLORS", "nocolor")
    308309        else:
    309310            self.stderr = OutputWrapper(options.get('stderr', sys.stderr), self.style.ERROR)
    310311
Back to Top