web/lib/django_extensions/management/color.py
changeset 3 526ebd3988b0
equal deleted inserted replaced
1:ebaad720f88b 3:526ebd3988b0
       
     1 """
       
     2 Sets up the terminal color scheme.
       
     3 """
       
     4 
       
     5 from django.core.management import color
       
     6 from django.utils import termcolors
       
     7 
       
     8 def color_style():
       
     9     style = color.color_style()
       
    10     style.URL = termcolors.make_style(fg='green', opts=('bold',))
       
    11     style.MODULE = termcolors.make_style(fg='yellow')
       
    12     style.MODULE_NAME = termcolors.make_style(opts=('bold',))
       
    13     return style