64👍
✅
Django documentation on management commands might help, it describes how to call them from python code.
Basically you need something like this:
from django.core import management
management.call_command( ... )
👤kgr
Source:stackexchange.com