Management command docs should mention underscore prefix
|Reported by:||murphyke||Owned by:||gnosek|
|Cc:||chomik||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The documentation for custom management commands should mention how to exclude source files from being listed or used as management commands. I've confirmed that the dev docs do not mention this.
Looking at the (1.3) source code for django.core.management, I see that files prefixed with underscores ("_") are ignored or prevented from being considered as management commands.
Being able to do so is occasionally important, as when several commands depend on a helper class.
Change History (5)
comment:1 Changed 2 years ago by chomik
- Cc chomik added
- Easy pickings set
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
Changed 2 years ago by gnosek
comment:2 Changed 2 years ago by gnosek
- Has patch set
- Owner changed from nobody to gnosek
- Status changed from new to assigned