﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30098	Permit using packages (directories) in custom django-admin commands.	Andrey Volkov	Andrey Volkov	"Current Django behavior is that only files are allowed for custom django-admin commands definition. It would be great if Django permitted directories (see example below).

Current (required) style:
{{{
app_example/management/commands
├── first_command.py
└── second_command.py
}}}

New style:
{{{
app_example/management/commands
├── first_command
│   ├── __init__.py
│   └── some_useful_data
└── second_command
    └── __init__.py
}}}

Or combined style:
{{{
app_example/management/commands
├── first_command
│   ├── __init__.py
│   └── some_useful_data
└── second_command.py
}}}

This feature allows developers to use additional files (some_useful_data is this case) in structured way, also providing encapsulation.

The only code to be changed is in file `django/core/management/__init__.py` line 27:
From `if not is_pkg and not name.startswith('_')]`
To `if not name.startswith('_')]`

After this change, function `find_commands` won't ignore packages (directories).

Also, backward compatibility will be saved (because single files work in the same way)."	New feature	closed	Core (Management commands)	2.1	Normal	wontfix			Unreviewed	1	0	0	0	0	0
