Run custom admin command from view May 7, 2023 by Tarik You can use call_command: from django.core.management import call_command call_command('myadmincmd')