Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#12272 closed (invalid)

django.core.management.color.py sucks?

Reported by: pedromagnus Owned by: nobody
Component: Core (Other) Version: 1.1
Severity: Keywords: color django-extensions extensions core show_urls
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I'm trying to see some colors in my win console (with cygwin and econsole) and I can't do it. I'm currently working using the django extensions, specifically 'show_urls' and instead of colors it show the color-code (I suppose) and the text without any indentation.
It uses (to colorize and formatting) django.core.management.color.py.
Looking the code of color.py it seems that the only thing it checks is if the SO is win32, from that automatically assumes that there is no color in the console and returns FALSE. I'm right on this?? If I am, then this code really sucks, it has to be updated anyway.
Regards.
Pedro

Change History (2)

comment:1 by Ramiro Morales, 15 years ago

Resolution: invalid
Status: newclosed

Short answer: No, it doesn't.

Long answer: If you want different behavior then research, code a solution to show color in a win32 console and submit a patch. Patches are welcome, mean language isn't.

comment:2 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top