#27769: createsuperuser command missing docs about no-input/interactive
---------------------------------+------------------------------------
     Reporter:  Kenny Loveall    |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  Documentation    |                  Version:  master
     Severity:  Normal           |               Resolution:
     Keywords:  createsuperuser  |             Triage Stage:  Accepted
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+------------------------------------
Changes (by Claude Paroz):

 * component:  Core (Management commands) => Documentation
 * version:  1.8 => master
 * stage:  Unreviewed => Accepted


Comment:

 The issue stems from the fact that the `--no-input` command line flag is
 translating to the `interactive` variable which should be used when
 calling the command through `call_command`.
 `call_command('createsuperuser', interactive=False, username='test',
 email=​'[email protected]')` should then work.

 The documentation should really be improved in this case
 (https://docs.djangoproject.com/en/stable/ref/django-
 admin/#createsuperuser).

--
Ticket URL: <https://code.djangoproject.com/ticket/27769#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.83f7ddbd159ec1f0cd8d1784611e3090%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to