how to import a manage.py from command prompt code example Example: python django shell command $ python manage.py shell ... >>> execfile('myscript.py')