Fixed #34768 -- Avoided initializing colorama on non-Windows platforms.

This commit is contained in:
Sulabh Katila 2023-08-30 23:03:30 -04:00 committed by Mariusz Felisiak
parent 9cc0d7f7f8
commit 9a9620dda6
6 changed files with 10 additions and 7 deletions

View file

@ -103,12 +103,12 @@ terminal. In modern terminals this should work for both CMD and PowerShell. If
for some reason this needs to be disabled, set the environmental variable
:envvar:`DJANGO_COLORS` to ``nocolor``.
On older Windows versions, or legacy terminals, :pypi:`colorama` must be
On older Windows versions, or legacy terminals, :pypi:`colorama` 0.4.6+ must be
installed to enable syntax coloring:
.. code-block:: doscon
...\> py -m pip install colorama
...\> py -m pip install "colorama >= 0.4.6"
See :ref:`syntax-coloring` for more information on color settings.