user1050619 user1050619 - 1 year ago 169
Bash Question

Django store shell history

I lost all my history when I login to shell. Inorder to view the history, I installed ipython and tried to use it.

Now, I get a error when I try this command -

ipython shell_plus --print-sql

[TerminalIPythonApp] CRITICAL | Bad config encountered during
[TerminalIPythonApp] CRITICAL | Unrecognized flag: '--print-sql'

Similarly even bpython also does not work.

Answer Source

You shouldn't use ipython to start the shell. Just use python as normal; Django will use IPython as the shell if it's installed.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download