Opened 4 years ago
Last modified 4 years ago
#31924 closed New feature
Support --force-color for runserver — at Initial Version
Reported by: | Zach Waggoner | Owned by: | nobody |
---|---|---|---|
Component: | Core (Management commands) | Version: | 3.1 |
Severity: | Normal | Keywords: | runserver, force_color |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Note:
See TracTickets
for help on using tickets.