Answers for "run django command line"

3

python django shell command

$ python manage.py shell
...
>>> execfile('myscript.py')
Posted by: Guest on April-03-2020
0

django run command from code

from django.core.management import call_command
call_command('my_command', 'foo', bar='baz')
Posted by: Guest on March-11-2021

Python Answers by Framework

Browse Popular Code Answers by Language