Opened 7 years ago

Closed 7 years ago

#8232 closed (invalid)

django-admin.py should work with the `yes` utility

Reported by: nslater Owned by: nobody
Component: Core (Management commands) Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I am trying to build ./django-admin.py test into a build script and if a previous invokation has failed this command will ask if the user wants to create a database. As the build script is non-interactive I would like a way to specify "yes" to this question from the command line.

The two common approaches to this would be:

  • Add an --force-yes option, or similar
  • Read STDIN for the value so that the UNIX yes command could be piped into it

Change History (1)

comment:1 Changed 7 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

This is what the --noinput option is for. The same option is used for a wide range of django-admin commands to accept the default option.

Note: See TracTickets for help on using tickets.
Back to Top