python manage.py startapp accounts code example
Example 1: python django shell command
$ python manage.py shell
...
>>> execfile('myscript.py')
Example 2: start new app in django
$ python manage.py startapp app_name
$ python manage.py shell
...
>>> execfile('myscript.py')
$ python manage.py startapp app_name