Django ejecutar el comando de administración desde el código
from django.core.management import call_command
call_command('my_command', 'foo', bar='baz')
Alive Armadillo
from django.core.management import call_command
call_command('my_command', 'foo', bar='baz')
from django.core.management import call_command
call_command('my_command', 'foo', bar='baz')