I noticed something strange when using the Django shell on Windows. I tested different calls with a simple script that:
for it in range(5):
print(it)
When I type this script in a Python environment or manage.py shellit works fine. But when I put this code in a file and execute it with python manage.py shell < myFile.py, nothing is displayed there, when I print in loops, then the output is "...".
I overcame this limitation by running it in the built-in console from Eclipse, but I am very curious why the output does not display well when the script is called from the output file.
Does anyone know what happened?
source
share