Skip to content

Commit 2e37cb4

Browse files
authored
fix: discover commands from apps before django.core
1 parent c640880 commit 2e37cb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/management_commands/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def import_command_class(dotted_path: str) -> type[BaseCommand]:
3030
def get_command_paths(name: str, app_label: str | None = None) -> list[str]:
3131
if not app_label:
3232
app_names = [
33-
"django.core",
3433
*(app_config.name for app_config in reversed(list(apps.get_app_configs()))),
34+
"django.core",
3535
]
3636

3737
modules_paths = [f"{module}.{name}.Command" for module in settings.MODULES]

0 commit comments

Comments
 (0)