#29560: Add an option to django-admin to always colorize output -------------------------------------+------------------------------------- Reporter: Nicolas | Owner: nobody NoƩ | Type: | Status: new Uncategorized | Component: Core | Version: master (Management commands) | Severity: Normal | Keywords: Triage Stage: | Has patch: 0 Unreviewed | Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -------------------------------------+------------------------------------- With Django management commands, it is currently possible disable colors with the `--no-colors` flag.
What I'd like to have is basically the other side of the coin: a `--force- colors` flag that instructs Django to output ANSI color sequences in cases it would disable colors by default (typically, when the output is piped to another command, as documented). My real world use-case is the following one: I have a custom Django command to import data. I run this command myself, and I'd like to send a colored log (HTML seems perfect for this) to the data curators. I can use the https://github.com/theZiz/aha utility for this, but that doesn't work since Django disable colors when the output is piped. Other *nix commands have a special flag for this exact use-case, for example `$ ls --color=always` -- Ticket URL: <https://code.djangoproject.com/ticket/29560> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/050.d98694c8cf5039208c360baefd49d603%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.