From 1bbb98d9a4b7d83e422b14ae2429cb368eff5a13 Mon Sep 17 00:00:00 2001 From: Peter Inglesby Date: Mon, 18 Jan 2021 19:07:07 +0000 Subject: Fixed #32363 -- Ensured sys.__interactivehook__ is called in shell By default, this means that readline is properly registered, so that .python_history is used. sys.__interactivehook__ may be set by a $PYTHONSTARTUP file. --- docs/releases/4.0.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/releases/4.0.txt b/docs/releases/4.0.txt index a9e660f0f1..9b57a524aa 100644 --- a/docs/releases/4.0.txt +++ b/docs/releases/4.0.txt @@ -236,6 +236,11 @@ Management Commands * On PostgreSQL, :djadmin:`dbshell` now supports specifying a password file. +* The :djadmin:`shell` command now respects :py:data:`sys.__interactivehook__` + at startup. This allows loading shell history between interactive sessions. + As a consequence, ``readline`` is no longer loaded if running in *isolated* + mode. + Migrations ~~~~~~~~~~ -- cgit v1.3