Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django run management command from code

from django.core.management import call_command

call_command('my_command', 'foo', bar='baz')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #run #management #command #code
ADD COMMENT
Topic
Name
2+8 =