Django runserver color output

debugging, django, python

Solution

This is the default palette:

    'ERROR':        { 'fg': 'red', 'opts': ('bold',) },
    'NOTICE':       { 'fg': 'red' },
    'SQL_FIELD':    { 'fg': 'green', 'opts': ('bold',) },
    'SQL_COLTYPE':  { 'fg': 'green' },
    'SQL_KEYWORD':  { 'fg': 'yellow' },
    'SQL_TABLE':    { 'opts': ('bold',) },
    'HTTP_INFO':         { 'opts': ('bold',) },
    'HTTP_SUCCESS':      { },
    'HTTP_REDIRECT':     { 'fg': 'green' },
    'HTTP_NOT_MODIFIED': { 'fg': 'cyan' },
    'HTTP_BAD_REQUEST':  { 'fg': 'red', 'opts': ('bold',) },
    'HTTP_NOT_FOUND':    { 'fg': 'yellow' },
    'HTTP_SERVER_ERROR': { 'fg': 'magenta', 'opts': ('bold',) },

Problem

I am looking for an answer concerning the color used in the output during a session of `python2 manage.py runserver` I'm sure that understanding why some output is yellow, blue, or pink will help me to perform better debugging.

Original source