run django project on shell code example
Example 1: python django shell command
$ python manage.py shell
...
>>> execfile('myscript.py')
Example 2: how to start a django project in terminal
django-admin startproject project_name
$ python manage.py shell
...
>>> execfile('myscript.py')
django-admin startproject project_name