﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32363	Django shell does not read ~/.python_history	Peter Inglesby	Peter Inglesby	"The Django shell does not read ~/.python_history.

This is because `sys.__interactivehook__()` is not called in shell.py.

Adding

{{{
        try:
            sys.__interactivehook__()
        except Exception:
            print(""Failed calling sys.__interactivehook__"")
            traceback.print_exc()
}}}

just before the call to `code.interpret()` in shell.py fixes this, and makes the Django shell nearly match the behaviour of the Python shell.

I'll create a PR."	New feature	closed	Core (Management commands)	4.0	Normal	fixed			Ready for checkin	1	0	0	0	0	0
