Django shell history commands always come from top

190 Views Asked by At

I've been having issues in trying to use older Django shell history commands, be it from previous shell session or current.

If I press UP arrow key, they show the first lines in the ~/.ipython/profile_default/history.sqlite, and not the last one I pressed enter on.

A couple of things I've tried are:

  1. Removed ipython history file, touched it again but same problem.
  2. Re-installed Ipython in venv.
  3. Tried using shell from a different project.
  4. Tried using shell_plus from django-extensions.

Nothing seemed to fix the issue. Does anyone have a clue how to fix this?

0

There are 0 best solutions below