Opened 16 years ago

Closed 16 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: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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 by Russell Keith-Magee, 16 years ago

Resolution: invalid
Status: newclosed

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