run manage.py command from a python script code example
Example: django run manage.py from python
from django.core import management
management.call_command('loaddata', 'test_data', verbosity=0)
from django.core import management
management.call_command('loaddata', 'test_data', verbosity=0)