#16167: support for custom django-admin commands written as packages
-------------------------------------+-------------------------------------
Reporter: Marwan Alsabbagh | Owner: nobody
<marwan.alsabbagh@…> | Status: new
Type: New feature | Component: Core (Management
Milestone: | commands)
Version: 1.3 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
-------------------------------------+-------------------------------------
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/16167>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.