Django store shell history
<p>I lost all my history when I login to shell. Inorder to view the history, I installed ipython and tried to use it.</p>

<p>Now, I get a error when I try this command - </p>

<pre><code>ipython manage.py shell_plus --print-sql


[TerminalIPythonApp] CRITICAL | Bad config encountered during 
initialization:
[TerminalIPythonApp] CRITICAL | Unrecognized flag: '--print-sql'
</code></pre>

<p>Similarly even bpython also does not work.</p>

<p>You shouldn't use <code>ipython</code> to start the shell. Just use <code>python manage.py...</code> as normal; Django will use IPython as the shell if it's installed.</p>

python django shell