Opened 8 years ago

Closed 8 years ago

#7092 closed (wontfix)

"shell" command should accept arguments

Reported by: tomvons@… 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

For the sake of making utility scripts easy to run (without having to fuss with PYTHONPATH), it would be nice if "manage.py shell" would accept arguments in the same way as running "python"

eg:

./manage.py shell import-sample-data.py

Currently this just outputs "Error: Command doesn't accept any arguments" (though "./manage.py shell --version" works)

An alternative would be to provide something more explicit, like "./manage.py runscript"

Change History (1)

comment:1 Changed 8 years ago by tomvons@…

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: wontfix
Status: newclosed

Seems this has come up before and there isn't much interest in doing it. Closing it.

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