Kaydet (Commit) fca4c482 authored tarafından oz123's avatar oz123 Kaydeden (comit) Tim Graham

Fixed #21075 - Improved doc for calling call_command with arguments.

üst af67ce5e
...@@ -1638,6 +1638,15 @@ Examples:: ...@@ -1638,6 +1638,15 @@ Examples::
management.call_command('flush', verbosity=0, interactive=False) management.call_command('flush', verbosity=0, interactive=False)
management.call_command('loaddata', 'test_data', verbosity=0) management.call_command('loaddata', 'test_data', verbosity=0)
Note that command options that take no arguments are passed as keywords
with ``True`` or ``False``::
management.call_command('dumpdata', use_natural_keys=True)
Command options which take multiple options are passed a list::
management.call_command('dumpdata', exclude=['contenttypes', 'auth'])
Output redirection Output redirection
================== ==================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment