linux shell script to run django command code example
Example 1: python django shell command
$ python manage.py shell
...
>>> execfile('myscript.py')
Example 2: How to add manage.py in python3.8.5
$ python manage.py runserver
$ python manage.py shell
...
>>> execfile('myscript.py')
$ python manage.py runserver