The function returns False.
Doing hackery and always returning True has not seemed to cause me an
issue in terminal and colors are being applied accordingly.
Obviously, always returning True is not the solution. But I think support
for "darwin" would be nice.
--
Ticket URL: <https://code.djangoproject.com/ticket/24905>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0
Comment:
Actually, it looks like if I do:
{{{
python
>>> from django.core.management.color import supports_color
>>> print supports_color()
}}}
That returns True.
The issue was when running django-devserver==0.8.0 and Django==1.7.8, it's
returning False.
--
Ticket URL: <https://code.djangoproject.com/ticket/24905#comment:1>
* status: closed => new
* resolution: invalid =>
--
Ticket URL: <https://code.djangoproject.com/ticket/24905#comment:2>
Comment (by timgraham):
Did you mean to reopen the ticket after closing it as invalid?
--
Ticket URL: <https://code.djangoproject.com/ticket/24905#comment:3>
Comment (by michaelhelmick):
Yes. It appears it's happening when accessing supports_color from other
libraries.
--
Ticket URL: <https://code.djangoproject.com/ticket/24905#comment:4>
* status: new => closed
* resolution: => needsinfo
Comment:
I don't see anything to suggest it's a bug in Django. Please check the
implementation of
[https://github.com/django/django/blob/927d90ee1ee4aa630a5a879b5fd75aa03a3341f7/django/core/management/color.py#L11-L23
supports_color()], investigate the issue with the third-party library, and
reopen if you can say why it's Django's problem. Thanks!
--
Ticket URL: <https://code.djangoproject.com/ticket/24905#comment:5>