how to run django-admin from a bash script code example Example: python django shell command $ python manage.py shell ... >>> execfile('myscript.py')