Tag: django shell

从Django shell执行Python脚本

我需要从Django shell执行一个Python脚本。 我试过了 ./manage.py shell << my_script.py 但它没有工作。 这只是在等我写点东西。