I need to execute a Python script from the Django shell. I tried:

./manage.py shell << my_script.py

But it didn’t work. It was just waiting for me to write something.

24 Answers
24

Leave a Reply

Your email address will not be published. Required fields are marked *