Code

Opened 6 years ago

Closed 6 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"

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by tomvons@…

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

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.