How to execute a Python script from the Django shell?

$ ./manage.py shell < myscript.py