Changes between Initial Version and Version 5 of Ticket #31924
- Timestamp:
- Aug 25, 2020, 3:39:22 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31924
- Property Resolution → invalid
- Property Status new → closed
-
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.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.