python manage.py shell in django code example
Example 1: python django shell command
$ python manage.py shell
...
>>> execfile('myscript.py')
Example 2: django shell
python manage.py shell
Example 3: how to use django shell
$ ./manage.py shell_plus --ptpython