Opened 17 years ago
Closed 17 years ago
#7092 closed (wontfix)
"shell" command should accept arguments
Reported by: | 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
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"
Note:
See TracTickets
for help on using tickets.
Seems this has come up before and there isn't much interest in doing it. Closing it.