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.
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.