2

When running the django test server on a local project, can you make 400/500 errors stand out in a different color in output text?

MikeN
  • 45,039
  • 49
  • 151
  • 227

1 Answers1

6

The colors can be controlled using the DJANGO_COLORS environment variable. See the docs on syntax coloring.

This requires a platform which supports colors.

Braiam
  • 1
  • 11
  • 47
  • 78
Mark Lavin
  • 24,664
  • 5
  • 76
  • 70
  • Where exactly do you put those export commands? In settings.py? – MikeN Jan 27 '12 at 01:14
  • They would go in your .bashrc file or in the virtualenv postactivate script if you wanted to configure the colors on a project by project basis. – Mark Lavin Jan 27 '12 at 01:18