How to enable history in Django shell in python How to enable history in Django shell in python django django

How to enable history in Django shell in python


Do you have IPython installed?

The docs mention that

The default resolution order is: bpython, ipython, python.

P.S. I haven't used bpython but there seems to be a history too.


You could use bpython it has history enabled and many other fantastic features, if you are using virtualenv install it with pip.

pip install bpython

or globally

apt-get install bpython

For me this is the most amazing interactive shell for python.