title: How do I signal the end of standard input in a python shell without logging out of the shell?
body: <p>I preferred using Ctrl+D and relogging into the Python shell and using up-arrow key to load the history. 
  But,getting into the Django shell, I couldn't even use the up-arrow key to load the commands used earlier and need to retype the whole thing.
  So, is there a way to handle this? 
  Something like 'set -o ignoreeof' in Unix</p>