1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #31216 -- Added support for colorama terminal colors on Windows.

Modern setups on Windows support terminal colors.
The colorama library may also be used, as an
alternative to the ANSICON library.
This commit is contained in:
MinchinWeb
2020-11-11 06:27:10 -07:00
committed by GitHub
parent b7f500396e
commit f1585c54d0
7 changed files with 102 additions and 8 deletions

View File

@@ -91,6 +91,24 @@ by executing ``django-admin --version`` in the command prompt.
See :ref:`database-installation` for information on database installation
with Django.
Colored terminal output
=======================
.. versionadded: 3.2
A quality-of-life feature is to output colored (rather than monochrome) output
on the terminal. This should work both on CMD and PowerShell. If for some
reason this needs to be disabled, set the environmental variable
:envvar:`DJANGO_COLORS` to ``nocolor``.
To enable this, colorama_ must be installed::
...\> py -m pip install colorama
See :ref:`syntax-coloring` for more information on color settings.
.. _colorama: https://pypi.org/project/colorama/
Common pitfalls
===============