#31924: Support --force-color for runserver
-------------------------------------+-------------------------------------
     Reporter:  Zach Waggoner        |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  Core (Management     |                  Version:  3.1
  commands)                          |
     Severity:  Normal               |               Resolution:  invalid
     Keywords:                       |             Triage Stage:
  runserver,force_color              |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Zach Waggoner):

 Replying to [comment:1 felixxm]:
 > It already works properly, you just need to set the `DJANGO_COLORS`
 environment variable to reach `ServerFormatter`, see
 [https://docs.djangoproject.com/en/3.1/ref/django-admin/#syntax-coloring
 docs].

 I might be missing something, but that doesn't work for me. As an example,
 trying to run this Procfile through honcho does not preserve the color
 output:

 {{{
 web: DJANGO_COLORS=dark python server/manage.py runserver
 }}}

 and neither does:

 {{{
 web: DJANGO_COLORS=dark python server/manage.py runserver --force-color
 }}}

 This is on Django 3.1.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31924#comment:2>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/071.1fd1e9c11ac5286dc46079b7c1c24174%40djangoproject.com.

Reply via email to