I'm on MACOS terminal. I'm trying to print colored output running a django test. I'm setting, from the terminal
export DJANGO_COLORS="error=yellow/blue,blink;notice=magenta"
(also tried DJANGO_COLORS="light"
and others.
Then, from django test code
print(os.environ['DJANGO_COLORS'])
logger.error("test")
and run
python manage.py test
The first line verifies that the environment variable is set correctly. But the next line prints normally, without coloring. What is wrong?