Code

Opened 4 years ago

Closed 4 years ago

Last modified 3 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: UI/UX:

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

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by ramiro

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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 Changed 3 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.