You've upgraded your Django project to Python 3.13 and want to try out the new REPL. Unfortunately, it's a no go. But thankfully, Trey Hunner wrote Django and the Python 3.13 REPL article in which he shows how to enable it.
This is just his idea packaged into a installable django app. Full credits go to Trey.
Warning: This app uses unsupported _pyrepl module. Hopefully,
the future versions of Python will be supported and this app
becomes deprecated.
uv add django_pyreplOr if you really need to:
pip install django_pyreplAfter that, simply add it to INSTALLED_APPS in your project settings.py
INSTALLED_APPS = [
    ...
    "django_pyrepl",
    ...
]MIT.