Change colors of output log text from Django development server

风格不统一 提交于 2019-12-06 05:23:31

The colors can be controlled using the DJANGO_COLORS environment variable. See the docs on syntax coloring: https://docs.djangoproject.com/en/1.3/ref/django-admin/#syntax-coloring

This requires Django >= 1.2 and a platform which supports colors (disabled on Windows).

LINK UPDATE: docs for version 1.3 are no longer available from docs.django.com. The current version of the doc on syntax coloring is here:

https://docs.djangoproject.com/en/1.9/ref/django-admin/#syntax-coloring

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!