Search code examples
djangodjango-dev-server

Change colors of output log text from Django development server


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?


Solution

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

    This requires a platform which supports colors.