web/lib/django_extensions/management/color.py
changeset 3 526ebd3988b0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/lib/django_extensions/management/color.py	Wed Jan 20 12:37:40 2010 +0100
@@ -0,0 +1,13 @@
+"""
+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',))
+    return style