Skip to content

Implement custom call_command #9

Open
@mikicz

Description

@mikicz

Description

Hello, what an interesting project! I'd find it quite useful for something I am working on, where I need to load management commands from outside apps.

One thing we heavily use at work is the call_command function, for running management commands from celery for example, etc. Right now with your solution that wouldn't work yet, as that function is not aware of the customisations (sadly the management command register cannot be easily overwritten)

Suggested Solution

Similar to how a custom implementation of execute_from_command_line must be imported, same should be possible for call_command, which would be aware of these custom commands

Terms

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions