You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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 commandsTerms
The text was updated successfully, but these errors were encountered: