diff options
| author | Jose L. Patino <jose@travelbird.nl> | 2013-02-23 16:28:45 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-07-30 09:26:18 -0400 |
| commit | 7b57e575c94691e40533e84d84235a0c6c90ab7b (patch) | |
| tree | 1495b67f58b9828ae9488d68e056277f28b89c6b /docs | |
| parent | d4dd55e78ccc8d38de750313f75d6921137e71ab (diff) | |
Fixed #19877 -- Added `--no-color` option to `BaseCommand` to avoid using output styles.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/django-admin.txt | 13 | ||||
| -rw-r--r-- | docs/releases/1.7.txt | 3 |
2 files changed, 16 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 565c779525..6be9d0f441 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -1429,6 +1429,19 @@ that ``django-admin.py`` should print to the console. * ``2`` means verbose output. * ``3`` means *very* verbose output. +.. django-admin-option:: --no-color + +.. versionadded:: 1.7 + +Example usage:: + + django-admin.py sqlall --no-color + +By default, ``django-admin.py`` will format the output to be colorized. For +example, errors will be printed to the console in red and SQL statements will +be syntax highlighted. To prevent this and have a plain text output, pass the +``--no-color`` option when running your command. + Common options ============== diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index 8d863c849a..217fdff287 100644 --- a/docs/releases/1.7.txt +++ b/docs/releases/1.7.txt @@ -92,6 +92,9 @@ Minor features * :func:`~django.core.mail.send_mail` now accepts an ``html_message`` parameter for sending a multipart ``text/plain`` and ``text/html`` email. +* The :djadminopt:`--no-color` option for ``django-admin.py`` allows you to + disable the colorization of management command output. + Backwards incompatible changes in 1.7 ===================================== |
