10👍
✅
Use django.core.management.call_command
.
For example:
from django.core import management
management.call_command('runserver')
Source:stackexchange.com