how to run django script to create datbase code example Example: python django shell command $ python manage.py shell ... >>> execfile('myscript.py')