Ticket #19115: 19115.4.patch

File 19115.4.patch, 680 bytes (added by Claude Paroz, 12 years ago)
  • docs/ref/django-admin.txt

    diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
    index e0b0845..a5ed37f 100644
    a b Examples::  
    14691469      from django.core import management
    14701470      management.call_command('flush', verbosity=0, interactive=False)
    14711471      management.call_command('loaddata', 'test_data', verbosity=0)
     1472
     1473Output redirection
     1474==================
     1475
     1476Note that you can redirect standard output and error streams as all commands
     1477support the ``stdout`` and ``stderr`` options. For example, you could write::
     1478
     1479    with open('/tmp/command_output') as f:
     1480        management.call_command('dumpdata', stdout=f)
Back to Top