Opened 14 years ago
Closed 13 years ago
#16167 closed New feature (wontfix)
support for custom django-admin commands written as packages
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Core (Management commands) | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Design decision needed | |
Has patch: | yes | Needs documentation: | yes |
Needs tests: | yes | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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:
polls/management/commands/closepoll.py polls/management/commands/closepoll/__init__.py
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.
Attachments (1)
Change History (4)
by , 14 years ago
Attachment: | 16167.package_commands.diff added |
---|
comment:1 by , 14 years ago
Has patch: | set |
---|
comment:2 by , 14 years ago
Needs documentation: | set |
---|---|
Needs tests: | set |
Triage Stage: | Unreviewed → Design decision needed |
comment:3 by , 13 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
UI/UX: | unset |
I'm going to close this ticket for the reasons explained by Carl in the discussion linked above.
Discussion thread: https://groups.google.com/group/django-developers/browse_thread/thread/474f0f96293b06f3
There is a -0 / -1 by a core developer.