support for custom django-admin commands written as packages
|Reported by:||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||1.3|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||yes||Patch needs improvement:||no|
django-admin commands currently only support implementation through python modules. It would be useful to support python packages as well. So as an example one could chose to implement a closepoll command in either of the below files:
This would be useful when a command contains a lot of logic or code and the developer would like the ability to split up the logic into multiple files to make the code base more manageable.
attached is a patch which implements these changes.
Change History (4)
comment:1 Changed 5 years ago by
|Patch needs improvement:||unset|
comment:2 Changed 5 years ago by
|Triage Stage:||Unreviewed → Design decision needed|