Opened 7 years ago

Closed 6 years ago

#16167 closed New feature (wontfix)

support for custom django-admin commands written as packages

Reported by: Marwan Alsabbagh <marwan.alsabbagh@…> 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


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.

Attachments (1)

16167.package_commands.diff (785 bytes) - added by Marwan Alsabbagh <marwan.alsabbagh@…> 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by Marwan Alsabbagh <marwan.alsabbagh@…>

Attachment: 16167.package_commands.diff added

comment:1 Changed 7 years ago by Marwan Alsabbagh <marwan.alsabbagh@…>

Has patch: set

comment:2 Changed 7 years ago by Aymeric Augustin

Needs documentation: set
Needs tests: set
Triage Stage: UnreviewedDesign decision needed

Discussion thread:

There is a -0 / -1 by a core developer.

comment:3 Changed 6 years ago by Aymeric Augustin

Resolution: wontfix
Status: newclosed
UI/UX: unset

I'm going to close this ticket for the reasons explained by Carl in the discussion linked above.

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