python manage.py shell code example
Example 1: python django shell command
$ python manage.py shell
...
>>> execfile('myscript.py')
Example 2: django runserver
python manage.py runserver
Example 3: django shell
python manage.py shell
$ python manage.py shell
...
>>> execfile('myscript.py')
python manage.py runserver
python manage.py shell