Changes between Initial Version and Version 5 of Ticket #31924


Ignore:
Timestamp:
Aug 25, 2020, 3:39:22 PM (4 years ago)
Author:
Zach Waggoner
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31924

    • Property Resolutioninvalid
    • Property Status newclosed
  • Ticket #31924 – Description

    initial v5  
    1 Currently, the `--force-color` option doesn't work for the `runserver` management command. In my own experimentation, I was able to force color output by changing `self.style = color_style()` to `self.style = color_style(force_color=True)` in django.utils.log.ServerFormatter. I can of course achieve this by using my own django.server formatter class, but it would be convenient to have it built in.
     1Currently, the `--force-color` option doesn't work for the `runserver` management command. In my own experimentation, I was able to force color output by changing `self.style = color_style()` to `self.style = color_style(force_color=True)` in `django.utils.log.ServerFormatter`. I can of course achieve this by using my own django.server formatter class, but it would be convenient to have it built in.
Back to Top