Reputation: 963
My Django application called my_app
pulls in a dependency called my_dependency
.
my_dependency
declares a management command called useful_thing
Is there a way I can run useful_thing
directly from my_app
's start.sh?
I've tried calling it directly but it's not found, but maybe there's a way I can configure it to look for management commands from a particular place? I'm new to Django and suspect this is not a sensible thing to try and do.
Upvotes: -1
Views: 512
Reputation: 670
You can call any (properly defined) management command using Django's manage.py, just like any other Django command:
python manage.py userful_thing
Upvotes: 0