Ändern Sie die Farben des Ausgangs-Protokolltexts von Django Development Server
-
14-11-2019 - |
Frage
Wenn Sie den Django-Testserver auf einem lokalen Projekt ausführen, können Sie 400/500 Fehler in einer anderen Farbe im Ausgabetext aufzeichnen?
Lösung
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).
Andere Tipps
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
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow