how to use the django shell code example Example: python django shell command $ python manage.py shell ... >>> execfile('myscript.py')