Answers for "django manage.py shell"

3

python django shell command

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

django run manage.py from python

from django.core import management
management.call_command('loaddata', 'test_data', verbosity=0)
Posted by: Guest on March-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language