Serotonin Storm

source>django_extensions>management>color.py
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
"""
Sets up the terminal color scheme.
"""

from django.core.management import color
from django.utils import termcolors

def color_style():
    style = color.color_style()
    style.URL = termcolors.make_style(fg='green', opts=('bold',))
    style.MODULE = termcolors.make_style(fg='yellow')
    style.MODULE_NAME = termcolors.make_style(opts=('bold',))
    style.URL_NAME = termcolors.make_style(fg='red')
    return style